home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJDEV201.ZIP / include / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  2.4 KB  |  76 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_string_h_
  3. #define __dj_include_string_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #include <sys/djtypes.h>
  12.   
  13. #define NULL 0
  14. __DJ_size_t
  15. #undef __DJ_size_t
  16. #define __DJ_size_t
  17.  
  18. void *    memchr(const void *_s, int _c, size_t _n);
  19. int    memcmp(const void *_s1, const void *_s2, size_t _n);
  20. void *    memcpy(void *_dest, const void *_src, size_t _n);
  21. void *    memmove(void *_s1, const void *_s2, size_t _n);
  22. void *    memset(void *_s, int _c, size_t _n);
  23. char *    strcat(char *_s1, const char *_s2);
  24. char *    strchr(const char *_s, int _c);
  25. int    strcmp(const char *_s1, const char *_s2);
  26. int    strcoll(const char *_s1, const char *_s2);
  27. char *    strcpy(char *_s1, const char *_s2);
  28. size_t    strcspn(const char *_s1, const char *_s2);
  29. char *    strerror(int _errcode);
  30. size_t    strlen(const char *_s);
  31. char *    strncat(char *_s1, const char *_s2, size_t _n);
  32. int    strncmp(const char *_s1, const char *_s2, size_t _n);
  33. char *    strncpy(char *_s1, const char *_s2, size_t _n);
  34. char *    strpbrk(const char *_s1, const char *_s2);
  35. char *    strrchr(const char *_s, int _c);
  36. size_t    strspn(const char *_s1, const char *_s2);
  37. char *    strstr(const char *_s1, const char *_s2);
  38. char *    strtok(char *_s1, const char *_s2);
  39. size_t    strxfrm(char *_s1, const char *_s2, size_t _n);
  40.  
  41. #ifndef __STRICT_ANSI__
  42.  
  43. #ifndef _POSIX_SOURCE
  44.  
  45. #include <sys/movedata.h>
  46.  
  47. int    bcmp(const void *_ptr1, const void *_ptr2, int _length);
  48. void *    bcopy(const void *_a, void *_b, size_t _len);
  49. void *    bzero(void *ptr, size_t _len);
  50. int    ffs(int _mask);
  51. char *  index(const char *_string, int _c);
  52. void *    memccpy(void *_to, const void *_from, int c, size_t n);
  53. char *  rindex(const char *_string, int _c);
  54. char *    stpcpy(char *_dest, const char *_src);
  55. char *    strdup(const char *_s);
  56. char *    strlwr(char *_s);
  57. int    strcasecmp(const char *_s1, const char *_s2);
  58. int    stricmp(const char *_s1, const char *_s2);
  59. int    strncasecmp(const char *_s1, const char *_s2, size_t _n);
  60. int    strnicmp(const char *_s1, const char *_s2, size_t _n);
  61. char *    strsep(char **_stringp, const char *_delim);
  62. char *    strupr(char *_s);
  63.  
  64. #endif /* !_POSIX_SOURCE */
  65. #endif /* !__STRICT_ANSI__ */
  66. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  67.  
  68. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  69. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  70.  
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74.  
  75. #endif /* !__dj_include_string_h_ */
  76.