string.h 896 B

1234567891011121314151617181920212223
  1. /*
  2. * Header for libc string functions
  3. *
  4. * This code is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU Library General Public License version 2.
  6. */
  7. #ifndef __STRING_H
  8. #define __STRING_H
  9. extern unsigned long strlen(const char *buf);
  10. extern char *strcat(char *dest, const char *src);
  11. extern char *strcpy(char *dest, const char *src);
  12. extern int strcmp(const char *a, const char *b);
  13. extern int strncmp(const char *a, const char *b, size_t n);
  14. extern char *strchr(const char *s, int c);
  15. extern char *strstr(const char *haystack, const char *needle);
  16. extern void *memset(void *s, int c, size_t n);
  17. extern void *memcpy(void *dest, const void *src, size_t n);
  18. extern int memcmp(const void *s1, const void *s2, size_t n);
  19. extern void *memmove(void *dest, const void *src, size_t n);
  20. extern void *memchr(const void *s, int c, size_t n);
  21. #endif /* _STRING_H */