Leaked source code of windows server 2003
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.

121 lines
4.9 KiB

  1. /***
  2. *string.h - declarations for string manipulation functions
  3. *
  4. * Copyright (c) 1985-1990, 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. #if defined(_DLL) && !defined(_MT)
  13. #error Cannot define _DLL without _MT
  14. #endif
  15. #ifdef _MT
  16. #define _FAR_ _far
  17. #else
  18. #define _FAR_
  19. #endif
  20. #ifndef _SIZE_T_DEFINED
  21. typedef unsigned int size_t;
  22. #define _SIZE_T_DEFINED
  23. #endif
  24. /* function prototypes */
  25. void _FAR_ * _FAR_ _cdecl memccpy(void _FAR_ *, const void _FAR_ *,
  26. int, unsigned int);
  27. void _FAR_ * _FAR_ _cdecl memchr(const void _FAR_ *, int, size_t);
  28. int _FAR_ _cdecl memcmp(const void _FAR_ *, const void _FAR_ *,
  29. size_t);
  30. int _FAR_ _cdecl memicmp(const void _FAR_ *, const void _FAR_ *,
  31. unsigned int);
  32. void _FAR_ * _FAR_ _cdecl memcpy(void _FAR_ *, const void _FAR_ *,
  33. size_t);
  34. void _FAR_ * _FAR_ _cdecl memmove(void _FAR_ *, const void _FAR_ *,
  35. size_t);
  36. void _FAR_ * _FAR_ _cdecl memset(void _FAR_ *, int, size_t);
  37. void _FAR_ _cdecl movedata(unsigned int, unsigned int, unsigned int,
  38. unsigned int, unsigned int);
  39. char _FAR_ * _FAR_ _cdecl strcat(char _FAR_ *, const char _FAR_ *);
  40. char _FAR_ * _FAR_ _cdecl strchr(const char _FAR_ *, int);
  41. int _FAR_ _cdecl strcmp(const char _FAR_ *, const char _FAR_ *);
  42. int _FAR_ _cdecl strcmpi(const char _FAR_ *, const char _FAR_ *);
  43. int _FAR_ _cdecl strcoll(const char _FAR_ *, const char _FAR_ *);
  44. int _FAR_ _cdecl stricmp(const char _FAR_ *, const char _FAR_ *);
  45. char _FAR_ * _FAR_ _cdecl strcpy(char _FAR_ *, const char _FAR_ *);
  46. size_t _FAR_ _cdecl strcspn(const char _FAR_ *, const char _FAR_ *);
  47. char _FAR_ * _FAR_ _cdecl strdup(const char _FAR_ *);
  48. char _FAR_ * _FAR_ _cdecl _strerror(const char _FAR_ *);
  49. char _FAR_ * _FAR_ _cdecl strerror(int);
  50. size_t _FAR_ _cdecl strlen(const char _FAR_ *);
  51. char _FAR_ * _FAR_ _cdecl strlwr(char _FAR_ *);
  52. char _FAR_ * _FAR_ _cdecl strncat(char _FAR_ *, const char _FAR_ *,
  53. size_t);
  54. int _FAR_ _cdecl strncmp(const char _FAR_ *, const char _FAR_ *,
  55. size_t);
  56. int _FAR_ _cdecl strnicmp(const char _FAR_ *, const char _FAR_ *,
  57. size_t);
  58. char _FAR_ * _FAR_ _cdecl strncpy(char _FAR_ *, const char _FAR_ *,
  59. size_t);
  60. char _FAR_ * _FAR_ _cdecl strnset(char _FAR_ *, int, size_t);
  61. char _FAR_ * _FAR_ _cdecl strpbrk(const char _FAR_ *,
  62. const char _FAR_ *);
  63. char _FAR_ * _FAR_ _cdecl strrchr(const char _FAR_ *, int);
  64. char _FAR_ * _FAR_ _cdecl strrev(char _FAR_ *);
  65. char _FAR_ * _FAR_ _cdecl strset(char _FAR_ *, int);
  66. size_t _FAR_ _cdecl strspn(const char _FAR_ *, const char _FAR_ *);
  67. char _FAR_ * _FAR_ _cdecl strstr(const char _FAR_ *,
  68. const char _FAR_ *);
  69. char _FAR_ * _FAR_ _cdecl strtok(char _FAR_ *, const char _FAR_ *);
  70. char _FAR_ * _FAR_ _cdecl strupr(char _FAR_ *);
  71. size_t _FAR_ _cdecl strxfrm (char _FAR_ *, const char _FAR_ *,
  72. size_t);
  73. /* model independent function prototypes */
  74. void _far * _far _cdecl _fmemccpy(void _far *, const void _far *,
  75. int, unsigned int);
  76. void _far * _far _cdecl _fmemchr(const void _far *, int, size_t);
  77. int _far _cdecl _fmemcmp(const void _far *, const void _far *,
  78. size_t);
  79. void _far * _far _cdecl _fmemcpy(void _far *, const void _far *,
  80. size_t);
  81. int _far _cdecl _fmemicmp(const void _far *, const void _far *,
  82. unsigned int);
  83. void _far * _far _cdecl _fmemmove(void _far *, const void _far *,
  84. size_t);
  85. void _far * _far _cdecl _fmemset(void _far *, int, size_t);
  86. char _far * _far _cdecl _fstrcat(char _far *, const char _far *);
  87. char _far * _far _cdecl _fstrchr(const char _far *, int);
  88. int _far _cdecl _fstrcmp(const char _far *, const char _far *);
  89. int _far _cdecl _fstricmp(const char _far *, const char _far *);
  90. char _far * _far _cdecl _fstrcpy(char _far *, const char _far *);
  91. size_t _far _cdecl _fstrcspn(const char _far *, const char _far *);
  92. char _far * _far _cdecl _fstrdup(const char _far *);
  93. char _near * _far _cdecl _nstrdup(const char _far *);
  94. size_t _far _cdecl _fstrlen(const char _far *);
  95. char _far * _far _cdecl _fstrlwr(char _far *);
  96. char _far * _far _cdecl _fstrncat(char _far *, const char _far *,
  97. size_t);
  98. int _far _cdecl _fstrncmp(const char _far *, const char _far *,
  99. size_t);
  100. int _far _cdecl _fstrnicmp(const char _far *, const char _far *,
  101. size_t);
  102. char _far * _far _cdecl _fstrncpy(char _far *, const char _far *,
  103. size_t);
  104. char _far * _far _cdecl _fstrnset(char _far *, int, size_t);
  105. char _far * _far _cdecl _fstrpbrk(const char _far *,
  106. const char _far *);
  107. char _far * _far _cdecl _fstrrchr(const char _far *, int);
  108. char _far * _far _cdecl _fstrrev(char _far *);
  109. char _far * _far _cdecl _fstrset(char _far *, int);
  110. size_t _far _cdecl _fstrspn(const char _far *, const char _far *);
  111. char _far * _far _cdecl _fstrstr(const char _far *,
  112. const char _far *);
  113. char _far * _far _cdecl _fstrtok(char _far *, const char _far *);
  114. char _far * _far _cdecl _fstrupr(char _far *);