string.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __STRING_H_
  2. #define __STRING_H_
  3. #pragma lib "/$M/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* memccpy(void*, void*, int, size_t);
  10. extern void *memmove(void *, const void *, size_t);
  11. extern char *strcpy(char *, const char *);
  12. extern char *strncpy(char *, const char *, size_t);
  13. extern char *strcat(char *, const char *);
  14. extern char *strncat(char *, const char *, size_t);
  15. extern int memcmp(const void *, const void *, size_t);
  16. extern int strcmp(const char *, const char *);
  17. extern int strcoll(const char *, const char *);
  18. extern char* strdup(char*);
  19. extern int strncmp(const char *, const char *, size_t);
  20. extern size_t strxfrm(char *, const char *, size_t);
  21. extern void *memchr(const void *, int, size_t);
  22. extern char *strchr(const char *, int);
  23. extern size_t strcspn(const char *, const char *);
  24. extern char *strpbrk(const char *, const char *);
  25. extern char *strrchr(const char *, int);
  26. extern size_t strspn(const char *, const char *);
  27. extern char *strstr(const char *, const char *);
  28. extern char *strtok(char *, const char *);
  29. extern void *memset(void *, int, size_t);
  30. extern char *strerror(int);
  31. extern size_t strlen(const char *);
  32. #ifdef _REENTRANT_SOURCE
  33. extern char *strerror_r(int, const char *, int);
  34. extern char *strtok_r(char *, const char *, char **);
  35. #endif
  36. #ifdef _BSD_EXTENSION
  37. #include <bsd.h>
  38. #endif
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif