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.

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