|
|
1.1 root 1: /***
2: *string.h - declarations for string manipulation functions
3: *
1.1.1.4 ! root 4: * Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved.
1.1 root 5: *
6: *Purpose:
7: * This file contains the function declarations for the string
8: * manipulation functions.
9: * [ANSI/System V]
10: *
11: ****/
12:
13: #ifndef _INC_STRING
14:
15: #ifdef __cplusplus
16: extern "C" {
17: #endif
18:
19:
1.1.1.3 root 20: /*
21: * Conditional macro definition for function calling type and variable type
22: * qualifiers.
23: */
24: #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
25:
26: /*
27: * Definitions for MS C8-32 (386/486) compiler
28: */
29: #define _CRTAPI1 __cdecl
30: #define _CRTAPI2 __cdecl
31:
32: #else
33:
34: /*
35: * Other compilers (e.g., MIPS)
36: */
37: #define _CRTAPI1
38: #define _CRTAPI2
39:
1.1.1.2 root 40: #endif
1.1 root 41:
1.1.1.3 root 42:
1.1 root 43: #ifndef _SIZE_T_DEFINED
44: typedef unsigned int size_t;
45: #define _SIZE_T_DEFINED
46: #endif
47:
48:
49: #ifndef _WCHAR_T_DEFINED
50: typedef unsigned short wchar_t;
51: #define _WCHAR_T_DEFINED
52: #endif
53:
54:
55: /* define NULL pointer value */
56:
57: #ifndef NULL
58: #ifdef __cplusplus
59: #define NULL 0
60: #else
61: #define NULL ((void *)0)
62: #endif
63: #endif
64:
65:
66: /* function prototypes */
67:
1.1.1.3 root 68: void * _CRTAPI1 _memccpy(void *, const void *, int, unsigned int);
69: void * _CRTAPI1 memchr(const void *, int, size_t);
70: int _CRTAPI1 memcmp(const void *, const void *, size_t);
71: int _CRTAPI1 _memicmp(const void *, const void *, unsigned int);
72: void * _CRTAPI1 memcpy(void *, const void *, size_t);
73: void * _CRTAPI1 memmove(void *, const void *, size_t);
74: void * _CRTAPI1 memset(void *, int, size_t);
75: char * _CRTAPI1 strcat(char *, const char *);
76: char * _CRTAPI1 strchr(const char *, int);
77: int _CRTAPI1 strcmp(const char *, const char *);
78: int _CRTAPI1 _strcmpi(const char *, const char *);
79: int _CRTAPI1 _stricmp(const char *, const char *);
80: int _CRTAPI1 strcoll(const char *, const char *);
1.1.1.2 root 81: #ifdef _MAC_
1.1.1.3 root 82: char * _CRTAPI1 _c2pstr(const char *);
83: char * _CRTAPI1 _p2cstr(const char *);
1.1.1.2 root 84: #endif
1.1.1.3 root 85: int _CRTAPI1 _stricoll(const char *, const char *);
86: char * _CRTAPI1 strcpy(char *, const char *);
87: size_t _CRTAPI1 strcspn(const char *, const char *);
88: char * _CRTAPI1 _strdup(const char *);
89: char * _CRTAPI1 _strerror(const char *);
90: char * _CRTAPI1 strerror(int);
91: size_t _CRTAPI1 strlen(const char *);
92: char * _CRTAPI1 _strlwr(char *);
93: char * _CRTAPI1 strncat(char *, const char *, size_t);
94: int _CRTAPI1 strncmp(const char *, const char *, size_t);
95: int _CRTAPI1 _strnicmp(const char *, const char *, size_t);
96: char * _CRTAPI1 strncpy(char *, const char *, size_t);
97: char * _CRTAPI1 _strnset(char *, int, size_t);
98: char * _CRTAPI1 strpbrk(const char *, const char *);
99: char * _CRTAPI1 strrchr(const char *, int);
100: char * _CRTAPI1 _strrev(char *);
101: char * _CRTAPI1 _strset(char *, int);
102: size_t _CRTAPI1 strspn(const char *, const char *);
103: char * _CRTAPI1 strstr(const char *, const char *);
104: char * _CRTAPI1 strtok(char *, const char *);
105: char * _CRTAPI1 _strupr(char *);
106: size_t _CRTAPI1 strxfrm (char *, const char *, size_t);
1.1 root 107:
1.1.1.2 root 108: #ifndef _WSTRING_DEFINED
1.1.1.3 root 109: wchar_t * _CRTAPI1 wcscat(wchar_t *, const wchar_t *);
110: wchar_t * _CRTAPI1 wcschr(const wchar_t *, wchar_t);
111: int _CRTAPI1 wcscmp(const wchar_t *, const wchar_t *);
112: wchar_t * _CRTAPI1 wcscpy(wchar_t *, const wchar_t *);
113: size_t _CRTAPI1 wcscspn(const wchar_t *, const wchar_t *);
114: size_t _CRTAPI1 wcslen(const wchar_t *);
115: wchar_t * _CRTAPI1 wcsncat(wchar_t *, const wchar_t *, size_t);
116: int _CRTAPI1 wcsncmp(const wchar_t *, const wchar_t *, size_t);
117: wchar_t * _CRTAPI1 wcsncpy(wchar_t *, const wchar_t *, size_t);
118: wchar_t * _CRTAPI1 wcspbrk(const wchar_t *, const wchar_t *);
119: wchar_t * _CRTAPI1 wcsrchr(const wchar_t *, wchar_t);
120: size_t _CRTAPI1 wcsspn(const wchar_t *, const wchar_t *);
121: wchar_t * _CRTAPI1 wcsstr(const wchar_t *, const wchar_t *);
122: wchar_t * _CRTAPI1 wcstok(wchar_t *, const wchar_t *);
123:
124: wchar_t * _CRTAPI1 _wcsdup(const wchar_t *);
125: int _CRTAPI1 _wcsicmp(const wchar_t *, const wchar_t *);
126: int _CRTAPI1 _wcsnicmp(const wchar_t *, const wchar_t *, size_t);
127: wchar_t * _CRTAPI1 _wcsnset(wchar_t *, wchar_t, size_t);
128: wchar_t * _CRTAPI1 _wcsrev(wchar_t *);
129: wchar_t * _CRTAPI1 _wcsset(wchar_t *, wchar_t);
130:
131: wchar_t * _CRTAPI1 _wcslwr(wchar_t *);
132: wchar_t * _CRTAPI1 _wcsupr(wchar_t *);
133: size_t _CRTAPI1 wcsxfrm(wchar_t *, const wchar_t *, size_t);
134: int _CRTAPI1 wcscoll(const wchar_t *, const wchar_t *);
135: int _CRTAPI1 _wcsicoll(const wchar_t *, const wchar_t *);
1.1.1.2 root 136:
1.1.1.3 root 137: /* old names */
1.1.1.2 root 138: #define wcswcs wcsstr
139:
140: #define _WSTRING_DEFINED
141: #endif
142:
1.1 root 143: #if !__STDC__
144: /* Non-ANSI names for compatibility */
145: #define memccpy _memccpy
146: #define memicmp _memicmp
147: #define strcmpi _strcmpi
148: #define stricmp _stricmp
149: #define strdup _strdup
150: #define strlwr _strlwr
151: #define strnicmp _strnicmp
152: #define strnset _strnset
153: #define strrev _strrev
154: #define strset _strset
155: #define strupr _strupr
1.1.1.2 root 156: #define stricoll _stricoll
157:
158: #ifdef _MAC_
159: #define c2pstr _c2pstr
160: #define p2cstr _p2cstr
161: #endif
162:
163: #define wcsdup _wcsdup
164: #define wcsicmp _wcsicmp
165: #define wcsnicmp _wcsnicmp
166: #define wcsnset _wcsnset
167: #define wcsrev _wcsrev
168: #define wcsset _wcsset
169: #define wcslwr _wcslwr
170: #define wcsupr _wcsupr
171: #define wcsicoll _wcsicoll
172: #endif /* !__STDC__ */
1.1 root 173:
174: #ifdef __cplusplus
175: }
176: #endif
177:
178: #define _INC_STRING
179: #endif /* _INC_STRING */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.