Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
5.3 KiB

  1. /***
  2. *string.h - declarations for string manipulation functions
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file contains the function declarations for the string
  8. * manipulation functions.
  9. * [ANSI/System V]
  10. *
  11. ****/
  12. #ifndef _INC_STRING
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #if (_MSC_VER <= 600)
  17. #define __cdecl _cdecl
  18. #define __far _far
  19. #define __near _near
  20. #endif
  21. #ifndef _SIZE_T_DEFINED
  22. typedef unsigned int size_t;
  23. #define _SIZE_T_DEFINED
  24. #endif
  25. #ifndef _WCHAR_T_DEFINED
  26. typedef unsigned short wchar_t;
  27. #define _WCHAR_T_DEFINED
  28. #endif
  29. /* define NULL pointer value */
  30. #ifndef NULL
  31. #ifdef __cplusplus
  32. #define NULL 0
  33. #else
  34. #define NULL ((void *)0)
  35. #endif
  36. #endif
  37. /* function prototypes */
  38. void * __cdecl _memccpy(void *, const void *,
  39. int, unsigned int);
  40. void * __cdecl memchr(const void *, int, size_t);
  41. int __cdecl memcmp(const void *, const void *,
  42. size_t);
  43. int __cdecl _memicmp(const void *, const void *,
  44. unsigned int);
  45. void * __cdecl memcpy(void *, const void *,
  46. size_t);
  47. void * __cdecl memmove(void *, const void *,
  48. size_t);
  49. void * __cdecl memset(void *, int, size_t);
  50. void __cdecl _movedata(unsigned int, unsigned int, unsigned int,
  51. unsigned int, unsigned int);
  52. char * __cdecl strcat(char *, const char *);
  53. char * __cdecl strchr(const char *, int);
  54. int __cdecl strcmp(const char *, const char *);
  55. int __cdecl _strcmpi(const char *, const char *);
  56. int __cdecl strcoll(const char *, const char *);
  57. int __cdecl _stricmp(const char *, const char *);
  58. char * __cdecl strcpy(char *, const char *);
  59. size_t __cdecl strcspn(const char *, const char *);
  60. char * __cdecl _strdup(const char *);
  61. char * __cdecl _strerror(const char *);
  62. char * __cdecl strerror(int);
  63. size_t __cdecl strlen(const char *);
  64. char * __cdecl _strlwr(char *);
  65. char * __cdecl strncat(char *, const char *,
  66. size_t);
  67. int __cdecl strncmp(const char *, const char *,
  68. size_t);
  69. int __cdecl _strnicmp(const char *, const char *,
  70. size_t);
  71. char * __cdecl strncpy(char *, const char *,
  72. size_t);
  73. char * __cdecl _strnset(char *, int, size_t);
  74. char * __cdecl strpbrk(const char *,
  75. const char *);
  76. char * __cdecl strrchr(const char *, int);
  77. char * __cdecl _strrev(char *);
  78. char * __cdecl _strset(char *, int);
  79. size_t __cdecl strspn(const char *, const char *);
  80. char * __cdecl strstr(const char *,
  81. const char *);
  82. char * __cdecl strtok(char *, const char *);
  83. char * __cdecl _strupr(char *);
  84. size_t __cdecl strxfrm (char *, const char *,
  85. size_t);
  86. /* model independent function prototypes */
  87. void __far * __far __cdecl _fmemccpy(void __far *, const void __far *,
  88. int, unsigned int);
  89. void __far * __far __cdecl _fmemchr(const void __far *, int, size_t);
  90. int __far __cdecl _fmemcmp(const void __far *, const void __far *,
  91. size_t);
  92. void __far * __far __cdecl _fmemcpy(void __far *, const void __far *,
  93. size_t);
  94. int __far __cdecl _fmemicmp(const void __far *, const void __far *,
  95. unsigned int);
  96. void __far * __far __cdecl _fmemmove(void __far *, const void __far *,
  97. size_t);
  98. void __far * __far __cdecl _fmemset(void __far *, int, size_t);
  99. char __far * __far __cdecl _fstrcat(char __far *, const char __far *);
  100. char __far * __far __cdecl _fstrchr(const char __far *, int);
  101. int __far __cdecl _fstrcmp(const char __far *, const char __far *);
  102. int __far __cdecl _fstricmp(const char __far *, const char __far *);
  103. char __far * __far __cdecl _fstrcpy(char __far *, const char __far *);
  104. size_t __far __cdecl _fstrcspn(const char __far *, const char __far *);
  105. char __far * __far __cdecl _fstrdup(const char __far *);
  106. char __near * __far __cdecl _nstrdup(const char __far *);
  107. size_t __far __cdecl _fstrlen(const char __far *);
  108. char __far * __far __cdecl _fstrlwr(char __far *);
  109. char __far * __far __cdecl _fstrncat(char __far *, const char __far *,
  110. size_t);
  111. int __far __cdecl _fstrncmp(const char __far *, const char __far *,
  112. size_t);
  113. int __far __cdecl _fstrnicmp(const char __far *, const char __far *,
  114. size_t);
  115. char __far * __far __cdecl _fstrncpy(char __far *, const char __far *,
  116. size_t);
  117. char __far * __far __cdecl _fstrnset(char __far *, int, size_t);
  118. char __far * __far __cdecl _fstrpbrk(const char __far *,
  119. const char __far *);
  120. char __far * __far __cdecl _fstrrchr(const char __far *, int);
  121. char __far * __far __cdecl _fstrrev(char __far *);
  122. char __far * __far __cdecl _fstrset(char __far *, int);
  123. size_t __far __cdecl _fstrspn(const char __far *, const char __far *);
  124. char __far * __far __cdecl _fstrstr(const char __far *,
  125. const char __far *);
  126. char __far * __far __cdecl _fstrtok(char __far *, const char __far *);
  127. char __far * __far __cdecl _fstrupr(char __far *);
  128. #ifndef __STDC__
  129. /* Non-ANSI names for compatibility */
  130. void * __cdecl memccpy(void *, const void *,
  131. int, unsigned int);
  132. int __cdecl memicmp(const void *, const void *,
  133. unsigned int);
  134. void __cdecl movedata(unsigned int, unsigned int, unsigned int,
  135. unsigned int, unsigned int);
  136. int __cdecl strcmpi(const char *, const char *);
  137. int __cdecl stricmp(const char *, const char *);
  138. char * __cdecl strdup(const char *);
  139. char * __cdecl strlwr(char *);
  140. int __cdecl strnicmp(const char *, const char *,
  141. size_t);
  142. char * __cdecl strnset(char *, int, size_t);
  143. char * __cdecl strrev(char *);
  144. char * __cdecl strset(char *, int);
  145. char * __cdecl strupr(char *);
  146. #endif
  147. #ifdef __cplusplus
  148. }
  149. #endif
  150. #define _INC_STRING
  151. #endif