string.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. /* $Header$ */
  8. #ifndef _STRING_HEADER_
  9. #define _STRING_HEADER_
  10. #ifndef NULL
  11. #define NULL 0
  12. #endif /* NULL */
  13. #ifndef _TYPE_SIZE_
  14. #define _TYPE_SIZE_
  15. typedef unsigned int size_t; /* type returned by sizeof */
  16. #endif /* _TYPE_SIZE_ */
  17. #ifdef __STDC__
  18. void *memcpy(void *s1, const void *s2, size_t n);
  19. void *memmove(void *s1, const void *s2, size_t n);
  20. char *strcpy(char *s1, const char *s2);
  21. char *strncpy(char *s1, const char *s2, size_t n);
  22. char *strcat(char *s1, const char *s2);
  23. char *strncat(char *s1, const char *s2, size_t n);
  24. int memcmp(const void *s1, const void *s2, size_t n);
  25. int strcmp(const char *s1, const char *s2);
  26. int strcoll(const char *s1, const char *s2);
  27. int strncmp(const char *s1, const char *s2, size_t n);
  28. size_t strxfrm(char *s1, const char *s2, size_t n);
  29. void *memchr(const void *s, int c, size_t n);
  30. char *strchr(const char *s, int c);
  31. size_t strcspn(const char *s1, const char *s2);
  32. char *strpbrk(const char *s1, const char *s2);
  33. char *strrchr(const char *s, int c);
  34. size_t strspn(const char *s1, const char *s2);
  35. char *strstr(const char *s1, const char *s2);
  36. char *strtok(char *s1, const char *s2);
  37. void *memset(void *s, int c, size_t n);
  38. char *strerror(int errnum);
  39. size_t strlen(const char *s);
  40. #endif /* __STDC__ */
  41. #endif /* _STRING_HEADER_ */