string.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef _STRING_H
  9. #define _STRING_H
  10. #include <stddef.h>
  11. extern void *memcpy(void *_s1, const void *_s2, size_t _n);
  12. extern void *memmove(void *_s1, const void *_s2, size_t _n);
  13. extern char *strcpy(char *_s1, const char *_s2);
  14. extern char *strncpy(char *_s1, const char *_s2, size_t _n);
  15. extern char *strcat(char *_s1, const char *_s2);
  16. extern char *strncat(char *_s1, const char *_s2, size_t _n);
  17. extern int memcmp(const void *_s1, const void *_s2, size_t _n);
  18. extern int strcmp(const char *_s1, const char *_s2);
  19. extern int strcoll(const char *_s1, const char *_s2);
  20. extern int strncmp(const char *_s1, const char *_s2, size_t _n);
  21. extern size_t strxfrm(char *_s1, const char *_s2, size_t _n);
  22. extern void *memchr(const void *_s, int _c, size_t _n);
  23. extern char *strchr(const char *_s, int _c);
  24. extern size_t strcspn(const char *_s1, const char *_s2);
  25. extern char *strpbrk(const char *_s1, const char *_s2);
  26. extern char *strrchr(const char *_s, int _c);
  27. extern size_t strspn(const char *_s1, const char *_s2);
  28. extern char *strstr(const char *_s1, const char *_s2);
  29. extern char *strtok(char *_s1, const char *_s2);
  30. extern void *memset(void *_s, int _c, size_t _n);
  31. extern char *strerror(int _errnum);
  32. extern size_t strlen(const char *_s);
  33. #endif