string.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __STRING
  2. #define __STRING
  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 *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 _BSD_EXTENSION
  31. #include <bsd.h>
  32. #endif
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* __STRING */