string.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * string.h - string handling
  3. *
  4. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  5. * See the copyright notice in the ACK home directory, in the file "Copyright".
  6. */
  7. /* $Id$ */
  8. #if !defined(_STRING_H)
  9. #define _STRING_H
  10. #define NULL ((void *)0)
  11. #if !defined(_SIZE_T)
  12. #define _SIZE_T
  13. typedef unsigned int size_t; /* type returned by sizeof */
  14. #endif /* _SIZE_T */
  15. void *memcpy(void *_s1, const void *_s2, size_t _n);
  16. void *memmove(void *_s1, const void *_s2, size_t _n);
  17. char *strcpy(char *_s1, const char *_s2);
  18. char *strncpy(char *_s1, const char *_s2, size_t _n);
  19. char *strcat(char *_s1, const char *_s2);
  20. char *strncat(char *_s1, const char *_s2, size_t _n);
  21. int memcmp(const void *_s1, const void *_s2, size_t _n);
  22. int strcmp(const char *_s1, const char *_s2);
  23. int strcoll(const char *_s1, const char *_s2);
  24. int strncmp(const char *_s1, const char *_s2, size_t _n);
  25. size_t strxfrm(char *_s1, const char *_s2, size_t _n);
  26. void *memchr(const void *_s, int _c, size_t _n);
  27. char *strchr(const char *_s, int _c);
  28. size_t strcspn(const char *_s1, const char *_s2);
  29. char *strpbrk(const char *_s1, const char *_s2);
  30. char *strrchr(const char *_s, int _c);
  31. size_t strspn(const char *_s1, const char *_s2);
  32. char *strstr(const char *_s1, const char *_s2);
  33. char *strtok(char *_s1, const char *_s2);
  34. void *memset(void *_s, int _c, size_t _n);
  35. char *strerror(int _errnum);
  36. size_t strlen(const char *_s);
  37. #endif /* _STRING_H */