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.

115 lines
2.9 KiB

  1. /***
  2. *string.h - declarations for string manipulation functions
  3. *
  4. * Copyright (c) 1985-1991, 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. #endif
  19. #ifndef _SIZE_T_DEFINED
  20. #ifdef _WIN64
  21. typedef unsigned __int64 size_t;
  22. #else
  23. typedef unsigned int size_t;
  24. #endif
  25. #define _SIZE_T_DEFINED
  26. #endif
  27. #ifndef _WCHAR_T_DEFINED
  28. typedef unsigned short wchar_t;
  29. #define _WCHAR_T_DEFINED
  30. #endif
  31. /* define NULL pointer value */
  32. #ifndef NULL
  33. #ifdef __cplusplus
  34. #define NULL 0
  35. #else
  36. #define NULL ((void *)0)
  37. #endif
  38. #endif
  39. /* function prototypes */
  40. void * _memccpy(void *, const void *, int, unsigned int);
  41. void * memchr(const void *, int, size_t);
  42. int memcmp(const void *, const void *, size_t);
  43. int _memicmp(const void *, const void *, unsigned int);
  44. void * memcpy(void *, const void *, size_t);
  45. void * memmove(void *, const void *, size_t);
  46. void * memset(void *, int, size_t);
  47. void _far * _far _fmemset(void _far *, int, size_t);
  48. void _far * _far _fmemcpy(void _far *, const void _far *, size_t);
  49. char * strcat(char *, const char *);
  50. char * strchr(const char *, int);
  51. int strcmp(const char *, const char *);
  52. int _strcmpi(const char *, const char *);
  53. int strcoll(const char *, const char *);
  54. int _stricmp(const char *, const char *);
  55. char * strcpy(char *, const char *);
  56. char _far * _far _fstrcpy(char _far *, const char _far *);
  57. size_t strcspn(const char *, const char *);
  58. char * _strdup(const char *);
  59. char * _strerror(const char *);
  60. char * strerror(int);
  61. size_t strlen(const char *);
  62. char * _strlwr(char *);
  63. char * strncat(char *, const char *, size_t);
  64. char _far * _far _fstrcat(char _far *, const char _far *);
  65. int strncmp(const char *, const char *, size_t);
  66. int _strnicmp(const char *, const char *, size_t);
  67. char * strncpy(char *, const char *, size_t);
  68. char * _strnset(char *, int, size_t);
  69. char * strpbrk(const char *, const char *);
  70. char * strrchr(const char *, int);
  71. char * _strrev(char *);
  72. char * _strset(char *, int);
  73. size_t strspn(const char *, const char *);
  74. char * strstr(const char *, const char *);
  75. char _far * _far _fstrstr(const char _far *, const char _far *);
  76. char * strtok(char *, const char *);
  77. char * _strupr(char *);
  78. size_t strxfrm (char *, const char *, size_t);
  79. char * itoa(int, char *, int);
  80. char * ultoa(unsigned long, char *, int);
  81. #if !__STDC__
  82. /* Non-ANSI names for compatibility */
  83. #define memccpy _memccpy
  84. #define memicmp _memicmp
  85. #define strcmpi _strcmpi
  86. #define stricmp _stricmp
  87. #define strdup _strdup
  88. #define strlwr _strlwr
  89. #define strnicmp _strnicmp
  90. #define strnset _strnset
  91. #define strrev _strrev
  92. #define strset _strset
  93. #define strupr _strupr
  94. #endif
  95. #ifdef __cplusplus
  96. }
  97. #endif
  98. #define _INC_STRING
  99. #endif /* _INC_STRING */