strings.h 942 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _STRINGS_H
  2. #define _STRINGS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define __NEED_size_t
  7. #define __NEED_locale_t
  8. #include <bits/alltypes.h>
  9. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \
  10. || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \
  11. || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
  12. int bcmp (const void *, const void *, size_t);
  13. void bcopy (const void *, void *, size_t);
  14. void bzero (void *, size_t);
  15. char *index (const char *, int);
  16. char *rindex (const char *, int);
  17. #endif
  18. #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  19. int ffs (int);
  20. int ffsl (long);
  21. int ffsll (long long);
  22. #endif
  23. int strcasecmp (const char *, const char *);
  24. int strncasecmp (const char *, const char *, size_t);
  25. int strcasecmp_l (const char *, const char *, locale_t);
  26. int strncasecmp_l (const char *, const char *, size_t, locale_t);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif