string.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __STRING_H_
  2. #define __STRING_H_
  3. #pragma lib "ape/libap.a"
  4. #include <stddef.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. extern void *memcpy(void *, const void *, size_t);
  9. extern void *memmove(void *, const void *, size_t);
  10. extern char *strcpy(char *, const char *);
  11. extern char *strncpy(char *, const char *, size_t);
  12. extern char *strcat(char *, const char *);
  13. extern char *strncat(char *, const char *, size_t);
  14. extern int memcmp(const void *, const void *, size_t);
  15. extern int strcmp(const char *, const char *);
  16. extern int strcoll(const char *, const char *);
  17. extern int strncmp(const char *, const char *, size_t);
  18. extern size_t strxfrm(char *, const char *, size_t);
  19. extern void *memchr(const void *, int, size_t);
  20. extern char *strchr(const char *, int);
  21. extern size_t strcspn(const char *, const char *);
  22. extern char *strpbrk(const char *, const char *);
  23. extern char *strrchr(const char *, int);
  24. extern size_t strspn(const char *, const char *);
  25. extern char *strstr(const char *, const char *);
  26. extern char *strtok(char *, const char *);
  27. extern void *memset(void *, int, size_t);
  28. extern char *strerror(int);
  29. extern size_t strlen(const char *);
  30. #ifdef _REENTRANT_SOURCE
  31. extern char *strerror_r(int, const char *, int);
  32. extern char *strtok_r(char *, const char *, char **);
  33. #endif
  34. #ifdef _BSD_EXTENSION
  35. #include <bsd.h>
  36. #endif
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif