2
0

strings.h 964 B

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