gdi32: Use HandleToULong inline function to convert handle to index instead of casting.
[wine] / include / msvcrt / memory.h
1 /*
2  * Memory definitions
3  *
4  * Derived from the mingw header written by Colin Peters.
5  * Modified for Wine use by Jon Griffiths and Francois Gouget.
6  * This file is in the public domain.
7  */
8 #ifndef __WINE_MEMORY_H
9 #define __WINE_MEMORY_H
10
11 #include <crtdefs.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #ifndef _CRT_MEMORY_DEFINED
18 #define _CRT_MEMORY_DEFINED
19
20 void*   __cdecl memchr(const void*,int,size_t);
21 int     __cdecl memcmp(const void*,const void*,size_t);
22 void*   __cdecl memcpy(void*,const void*,size_t);
23 errno_t __cdecl memcpy_s(void*,size_t,const void*,size_t);
24 void*   __cdecl memset(void*,int,size_t);
25 void*   __cdecl _memccpy(void*,const void*,int,unsigned int);
26 int     __cdecl _memicmp(const void*,const void*,unsigned int);
27
28 static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); }
29 static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); }
30
31 #endif /* _CRT_MEMORY_DEFINED */
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* __WINE_MEMORY_H */