source: trunk/include/win/msvcrt/string.h@ 10367

Last change on this file since 10367 was 10004, checked in by sandervl, 22 years ago

PF: Header updates

File size: 4.2 KB
Line 
1/*
2 * String 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_STRING_H
9#define __WINE_STRING_H
10#define __WINE_USE_MSVCRT
11
12#include "winnt.h"
13
14#ifdef USE_MSVCRT_PREFIX
15#define MSVCRT(x) MSVCRT_##x
16#else
17#define MSVCRT(x) x
18#endif
19
20
21#ifndef MSVCRT_SIZE_T_DEFINED
22typedef unsigned int MSVCRT(size_t);
23#define MSVCRT_SIZE_T_DEFINED
24#endif
25
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31void* MSVCRT(_memccpy)(void*,const void*,int,MSVCRT(size_t));
32int MSVCRT(_memicmp)(const void*,const void*,MSVCRT(size_t));
33int MSVCRT(_strcmpi)(const char*,const char*);
34char* MSVCRT(_strdup)(const char*);
35char* MSVCRT(_strerror)(const char*);
36int MSVCRT(_stricmp)(const char*,const char*);
37int MSVCRT(_stricoll)(const char*,const char*);
38char* MSVCRT(_strlwr)(char*);
39int MSVCRT(_strnicmp)(const char*,const char*,MSVCRT(size_t));
40char* MSVCRT(_strnset)(char*,int,MSVCRT(size_t));
41char* MSVCRT(_strrev)(char*);
42char* MSVCRT(_strset)(char*,int);
43char* MSVCRT(_strupr)(char*);
44
45void* MSVCRT(memchr)(const void*,int,MSVCRT(size_t));
46int MSVCRT(memcmp)(const void*,const void*,MSVCRT(size_t));
47void* MSVCRT(memcpy)(void*,const void*,MSVCRT(size_t));
48void* MSVCRT(memmove)(void*,const void*,MSVCRT(size_t));
49void* MSVCRT(memset)(void*,int,MSVCRT(size_t));
50char* MSVCRT(strcat)(char*,const char*);
51char* MSVCRT(strchr)(const char*,int);
52int MSVCRT(strcmp)(const char*,const char*);
53int MSVCRT(strcoll)(const char*,const char*);
54char* MSVCRT(strcpy)(char*,const char*);
55MSVCRT(size_t) MSVCRT(strcspn)(const char*,const char*);
56char* MSVCRTstrerror(int);
57MSVCRT(size_t) MSVCRT(strlen)(const char*);
58char* MSVCRT(strncat)(char*,const char*,MSVCRT(size_t));
59int MSVCRT(strncmp)(const char*,const char*,MSVCRT(size_t));
60char* MSVCRT(strncpy)(char*,const char*,MSVCRT(size_t));
61char* MSVCRT(strpbrk)(const char*,const char*);
62char* MSVCRT(strrchr)(const char*,int);
63MSVCRT(size_t) MSVCRT(strspn)(const char*,const char*);
64char* MSVCRT(strstr)(const char*,const char*);
65char* MSVCRT(strtok)(char*,const char*);
66MSVCRT(size_t) MSVCRT(strxfrm)(char*,const char*,MSVCRT(size_t));
67
68WCHAR* _wcsdup(const WCHAR*);
69int _wcsicmp(const WCHAR*,const WCHAR*);
70int _wcsicoll(const WCHAR*,const WCHAR*);
71WCHAR* _wcslwr(WCHAR*);
72int _wcsnicmp(const WCHAR*,const WCHAR*,MSVCRT(size_t));
73WCHAR* _wcsnset(WCHAR*,WCHAR,MSVCRT(size_t));
74WCHAR* _wcsrev(WCHAR*);
75WCHAR* _wcsset(WCHAR*,WCHAR);
76WCHAR* _wcsupr(WCHAR*);
77
78WCHAR* MSVCRT(wcscat)(WCHAR*,const WCHAR*);
79WCHAR* MSVCRT(wcschr)(const WCHAR*,WCHAR);
80int MSVCRT(wcscmp)(const WCHAR*,const WCHAR*);
81int MSVCRT(wcscoll)(const WCHAR*,const WCHAR*);
82WCHAR* MSVCRT(wcscpy)(WCHAR*,const WCHAR*);
83MSVCRT(size_t) MSVCRT(wcscspn)(const WCHAR*,const WCHAR*);
84MSVCRT(size_t) MSVCRT(wcslen)(const WCHAR*);
85WCHAR* MSVCRT(wcsncat)(WCHAR*,const WCHAR*,MSVCRT(size_t));
86int MSVCRT(wcsncmp)(const WCHAR*,const WCHAR*,MSVCRT(size_t));
87WCHAR* MSVCRT(wcsncpy)(WCHAR*,const WCHAR*,MSVCRT(size_t));
88WCHAR* MSVCRT(wcspbrk)(const WCHAR*,const WCHAR*);
89WCHAR* MSVCRT(wcsrchr)(const WCHAR*,WCHAR wcFor);
90MSVCRT(size_t) MSVCRT(wcsspn)(const WCHAR*,const WCHAR*);
91WCHAR* MSVCRT(wcsstr)(const WCHAR*,const WCHAR*);
92WCHAR* MSVCRT(wcstok)(WCHAR*,const WCHAR*);
93MSVCRT(size_t) MSVCRT(wcsxfrm)(WCHAR*,const WCHAR*,MSVCRT(size_t));
94
95#ifdef __cplusplus
96}
97#endif
98
99
100#ifndef USE_MSVCRT_PREFIX
101#define memccpy _memccpy
102#define memicmp _memicmp
103#define strcasecmp _strcasecmp
104#define strcmpi _strcmpi
105#define strdup _strdup
106#define stricmp _stricmp
107#define stricoll _stricoll
108#define strlwr _strlwr
109#define strncasecmp _strncasecmp
110#define strnicmp _strnicmp
111#define strnset _strnset
112#define strrev _strrev
113#define strset _strset
114#define strupr _strupr
115
116#define wcsdup _wcsdup
117#define wcsicoll _wcsicoll
118#define wcslwr _wcslwr
119#define wcsnicmp _wcsnicmp
120#define wcsnset _wcsnset
121#define wcsrev _wcsrev
122#define wcsset _wcsset
123#define wcsupr _wcsupr
124#endif /* USE_MSVCRT_PREFIX */
125
126#endif /* __WINE_STRING_H */
Note: See TracBrowser for help on using the repository browser.