strings.h 819 B

1234567891011121314151617181920212223242526272829303132333435
  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. int ffs (int);
  19. int strcasecmp (const char *, const char *);
  20. int strncasecmp (const char *, const char *, size_t);
  21. int strcasecmp_l (const char *, const char *, locale_t);
  22. int strncasecmp_l (const char *, const char *, size_t, locale_t);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif