string.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef _STRING_H
  2. #define _STRING_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #undef NULL
  7. #ifdef __cplusplus
  8. #define NULL 0
  9. #else
  10. #define NULL ((void*)0)
  11. #endif
  12. #define __NEED_size_t
  13. #include <bits/alltypes.h>
  14. void *memcpy (void *, const void *, size_t);
  15. void *memmove (void *, const void *, size_t);
  16. void *memccpy (void *, const void *, int, size_t);
  17. void *memset (void *, int, size_t);
  18. int memcmp (const void *, const void *, size_t);
  19. void *memchr (const void *, int, size_t);
  20. char *strcpy (char *, const char *);
  21. char *strncpy (char *, const char *, size_t);
  22. char *strcat (char *, const char *);
  23. char *strncat (char *, const char *, size_t);
  24. int strcmp (const char *, const char *);
  25. int strncmp (const char *, const char *, size_t);
  26. int strcoll (const char *, const char *);
  27. size_t strxfrm (char *, const char *, size_t);
  28. char *strdup (const char *);
  29. char *strchr (const char *, int);
  30. char *strrchr (const char *, int);
  31. size_t strcspn (const char *, const char *);
  32. size_t strspn (const char *, const char *);
  33. char *strpbrk (const char *, const char *);
  34. char *strstr (const char *, const char *);
  35. char *strtok (char *, const char *);
  36. char *strtok_r (char *, const char *, char **);
  37. size_t strlen (const char *);
  38. char *strerror (int);
  39. int strerror_r (int, char *, size_t);
  40. size_t strlcat (char *, const char *, size_t);
  41. size_t strlcpy (char *, const char *, size_t);
  42. char *stpcpy(char *, const char *);
  43. char *stpncpy(char *, const char *, size_t);
  44. size_t strnlen (const char *, size_t);
  45. #ifdef _GNU_SOURCE
  46. int strcasecmp (const char *, const char *);
  47. int strncasecmp (const char *, const char *, size_t);
  48. char *strchrnul(const char *, int);
  49. #endif
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif