home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c063 / 1.ddi / INCLUDE.ZIP / STRING.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  5.5 KB  |  134 lines

  1. /*  string.h
  2.  
  3.     Definitions for memory and string functions.
  4.  
  5.     Copyright (c) 1987, 1991 by Borland International
  6.     All Rights Reserved.
  7. */
  8.  
  9. #ifndef __STRING_H
  10. #define __STRING_H
  11.  
  12. #if !defined( __DEFS_H )
  13. #include <_defs.h>
  14. #endif
  15.  
  16. #ifndef NULL
  17. #include <_null.h>
  18. #endif
  19.  
  20. #ifndef _SIZE_T
  21. #define _SIZE_T
  22. typedef unsigned size_t;
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. void * _Cdecl memchr  (const void *__s, int __c, size_t __n);
  29. int         _Cdecl memcmp(const void *__s1,
  30.                           const void *__s2, size_t __n);
  31. void * _Cdecl memcpy(void *__dest, const void *__src,
  32.                           size_t __n);
  33. void * _CType memmove(void *__dest, const void *__src,
  34.                            size_t __n);
  35. void * _CType memset(void *__s, int __c, size_t __n);
  36. char * _CType strcat(char *__dest, const char *__src);
  37. char * _CType strchr(const char *__s, int __c);
  38. int         _CType strcmp(const char *__s1, const char *__s2);
  39. int         _Cdecl strcoll(const char *__s1, const char *__s2);
  40. char * _CType strcpy(char *__dest, const char *__src);
  41. size_t      _Cdecl strcspn(const char *__s1, const char *__s2);
  42. char * _Cdecl strerror(int __errnum);
  43. size_t      _CType strlen(const char *__s);
  44. char * _CType strncat(char *__dest, const char *__src,
  45.                size_t __maxlen);
  46. int         _CType strncmp(const char *__s1, const char *__s2,
  47.                size_t __maxlen);
  48. char * _CType strncpy(char *__dest, const char *__src,
  49.                            size_t __maxlen);
  50. char * _CType strpbrk(const char *__s1, const char *__s2);
  51. char * _CType strrchr(const char *__s, int __c);
  52. size_t      _Cdecl strspn(const char *__s1, const char *__s2);
  53. char * _Cdecl strstr(const char *__s1, const char *__s2);
  54. char * _CType strtok(char *__s1, const char *__s2);
  55. size_t      _Cdecl strxfrm(char *__s1, const char *__s2,
  56.                size_t __n );
  57. char * _Cdecl _strerror(const char *__s);
  58.  
  59.  
  60. #if !__STDC__
  61. /* compatibility with other compilers */
  62. #define strcmpi(s1,s2)      stricmp(s1,s2)
  63. #define strncmpi(s1,s2,n)   strnicmp(s1,s2,n)
  64.  
  65. void * _Cdecl memccpy(void *__dest, const void *__src,
  66.                int __c, size_t __n);
  67. int         _Cdecl memicmp(const void *__s1, const void *__s2,
  68.                            size_t __n);
  69. void        _Cdecl movedata(unsigned __srcseg,unsigned __srcoff,
  70.                             unsigned __dstseg,unsigned __dstoff, size_t __n);
  71. char * _CType stpcpy(char *__dest, const char *__src);
  72. char * _Cdecl _stpcpy(char *__dest, const char *__src);
  73. char * _Cdecl strdup(const char *__s);
  74. int         _CType stricmp(const char *__s1, const char *__s2);
  75. char * _CType strlwr(char *__s);
  76. int         _CType strnicmp(const char *__s1, const char *__s2,
  77.                 size_t __maxlen);
  78. char * _Cdecl strnset(char *__s, int __ch, size_t __n);
  79. char * _Cdecl strrev(char *__s);
  80. char * _Cdecl strset(char *__s, int __ch);
  81. char * _CType strupr(char *__s);
  82.  
  83. void    far * far cdecl _fmemccpy(void far *__dest, const void far *__src,
  84.                 int c, size_t __n);
  85. void    far * far cdecl _fmemchr(const void far *__s, int c, size_t __n);
  86. int           far cdecl _fmemcmp(const void far *__s1, const void far *__s2,
  87.                 size_t __n);
  88. void    far * far cdecl _fmemcpy(void far *__dest, const void far *__src,
  89.                 size_t __n);
  90. int           far cdecl _fmemicmp(const void far *__s1, const void far *__s2,
  91.                 size_t __n);
  92. void    far * far cdecl _fmemmove(void far *__dest, const void far *__src,
  93.                 size_t __n);
  94. void    far * far cdecl _fmemset(void far *__s, int c, size_t __n);
  95. void          far cdecl _fmovmem(const void far *__src, void far *__dest,
  96.                 unsigned __length);
  97. void          far cdecl _fsetmem(void far *__dest,unsigned __length,
  98.                 char __value);
  99.  
  100. char    far * far cdecl _fstrcat(char far *__dest, const char far *__src);
  101. char    far * far cdecl _fstrchr(const char far *__s, int c);
  102. int           far cdecl _fstrcmp(const char far *__s1, const char far *__s2);
  103. char    far * far cdecl _fstrcpy(char far *__dest, const char far *__src);
  104. size_t        far cdecl _fstrcspn(const char far *__s1, const char far *__s2);
  105. char    far * far cdecl _fstrdup(const char far *__s);
  106. int           far cdecl _fstricmp(const char far *__s1, const char far *__s2);
  107. size_t        far cdecl _fstrlen(const char far *__s);
  108. char    far * far cdecl _fstrlwr(char far *__s);
  109. char    far * far cdecl _fstrncat(char far *__dest, const char far *__src,
  110.              size_t maxlen);
  111. int           far cdecl _fstrncmp(const char far *__s1, const char far *__s2,
  112.              size_t maxlen);
  113. char    far * far cdecl _fstrncpy(char far *__dest, const char far *__src,
  114.              size_t maxlen);
  115. int           far cdecl _fstrnicmp(const char far *__s1, const char far *__s2,
  116.               size_t maxlen);
  117. char    far * far cdecl _fstrnset(char far *__s, int ch, size_t __n);
  118. char    far * far cdecl _fstrpbrk(const char far *__s1, const char far *__s2);
  119. char    far * far cdecl _fstrrchr(const char far *__s, int c);
  120. char    far * far cdecl _fstrrev(char far *__s);
  121. char    far * far cdecl _fstrset(char far *__s, int ch);
  122. size_t        far cdecl _fstrspn(const char far *__s1, const char far *__s2);
  123. char    far * far cdecl _fstrstr(const char far *__s1, const char far *__s2);
  124. char    far * far cdecl _fstrtok(char far *__s1, const char far *__s2);
  125. char    far * far cdecl _fstrupr(char far *__s);
  126.  
  127. #endif  /* ! __STDC__ */
  128.  
  129. #ifdef __cplusplus
  130. }
  131. #endif
  132.  
  133. #endif
  134.