Subversion Repositories Kolibri OS

Rev

Rev 4973 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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