string.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __STRING
  2. #define __STRING
  3. #define NULL 0
  4. #if !defined(_SIZE_T) && !defined(_SIZE_T_)
  5. #define _SIZE_T
  6. #define _SIZE_T_
  7. typedef unsigned long size_t;
  8. #endif
  9. void *memcpy(void *, const void *, size_t);
  10. void *memmove(void *, const void *, size_t);
  11. char *strcpy(char *, const char *);
  12. char *strncpy(char *, const char *, size_t);
  13. char *strcat(char *, const char *);
  14. char *strncat(char *, const char *, size_t);
  15. int memcmp(const void *, const void *, size_t);
  16. int strcmp(const char *, const char *);
  17. int strcoll(const char *, const char *);
  18. int strncmp(const char *, const char *, size_t);
  19. size_t strxfrm(char *, const char *, size_t);
  20. void *memchr(const void *, int, size_t);
  21. char *strchr(const char *, int);
  22. size_t strcspn(const char *, const char *);
  23. char *strpbrk(const char *, const char *);
  24. char *strrchr(const char *, int);
  25. size_t strspn(const char *, const char *);
  26. char *strstr(const char *, const char *);
  27. char *strtok(char *, const char *);
  28. void *memset(void *, int, size_t);
  29. char *strerror(int);
  30. size_t strlen(const char *);
  31. #endif /* __STRING */