home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / INCLUDE.ZIP / STRING.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  2.9 KB  |  90 lines

  1. /*    string.h
  2.  
  3.     Definitions for memory and string functions.
  4.  
  5.         Copyright (c) Borland International 1987,1988,1990
  6.     All Rights Reserved.
  7. */
  8.  
  9. #ifndef __STRING_H
  10. #define __STRING_H
  11.  
  12. #if __STDC__
  13. #define _Cdecl
  14. #else
  15. #define _Cdecl    cdecl
  16. #endif
  17.  
  18. #ifndef __PAS__
  19. #define _CType _Cdecl
  20. #else
  21. #define _CType pascal
  22. #endif
  23.  
  24. #ifndef NULL
  25. #if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
  26. #define    NULL    0
  27. #else
  28. #define    NULL    0L
  29. #endif
  30. #endif
  31.  
  32. #ifndef _SIZE_T
  33. #define _SIZE_T
  34. typedef unsigned size_t;
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. void   *_Cdecl memchr    (const void *__s, int __c, size_t __n);
  41. int        _Cdecl memcmp    (const void *__s1, const void *__s2, size_t __n);
  42. void   *_Cdecl memcpy    (void *__dest, const void *__src, size_t __n);
  43. void   *_CType memmove    (void *__dest, const void *__src, size_t __n);
  44. void   *_CType memset    (void *__s, int __c, size_t __n);
  45. char   *_CType strcat    (char *__dest, const char *__src);
  46. char   *_Cdecl strchr    (const char *__s, int __c);
  47. int        _CType strcmp    (const char *__s1, const char *__s2);
  48. int        _Cdecl strcoll    (const char *__s1, const char *__s2);
  49. char   *_CType strcpy    (char *__dest, const char *__src);
  50. size_t  _Cdecl strcspn    (const char *__s1, const char *__s2);
  51. char   *_Cdecl strerror (int __errnum);
  52. size_t  _CType strlen    (const char *__s);
  53. char   *_Cdecl strncat    (char *__dest, const char *__src, size_t __maxlen);
  54. int        _Cdecl strncmp    (const char *__s1, const char *__s2, size_t __maxlen);
  55. char   *_CType strncpy    (char *__dest, const char *__src, size_t __maxlen);
  56. char   *_Cdecl strpbrk    (const char *__s1, const char *__s2);
  57. char   *_CType strrchr    (const char *__s, int __c);
  58. size_t  _Cdecl strspn    (const char *__s1, const char *__s2);
  59. char   *_Cdecl strstr    (const char *__s1, const char *__s2);
  60. char   *_Cdecl strtok    (char *__s1, const char *__s2);
  61. size_t  _Cdecl strxfrm  (char *__s1, const char *__s2, size_t __n );
  62. char   *_Cdecl _strerror (const char *__s);
  63.  
  64.  
  65. #if !__STDC__
  66. /* compatibility with other compilers */
  67. #define strcmpi(s1,s2)        stricmp(s1,s2)
  68. #define strncmpi(s1,s2,n)    strnicmp(s1,s2,n)
  69.  
  70. void   *_Cdecl memccpy    (void *__dest, const void *__src, int __c, size_t __n);
  71. int        _Cdecl memicmp    (const void *__s1, const void *__s2, size_t __n);
  72. void    _Cdecl movedata (unsigned __srcseg, unsigned __srcoff, unsigned __dstseg,
  73.                          unsigned __dstoff, size_t __n);
  74. char   *_Cdecl stpcpy    (char *__dest, const char *__src);
  75. char   *_Cdecl strdup    (const char *__s);
  76. int        _CType stricmp    (const char *__s1, const char *__s2);
  77. char   *_Cdecl strlwr    (char *__s);
  78. int        _Cdecl strnicmp (const char *__s1, const char *__s2, size_t __maxlen);
  79. char   *_Cdecl strnset    (char *__s, int __ch, size_t __n);
  80. char   *_Cdecl strrev    (char *__s);
  81. char   *_Cdecl strset    (char *__s, int __ch);
  82. char   *_Cdecl strupr    (char *__s);
  83. #endif
  84.  
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88.  
  89. #endif
  90.