strings.h 555 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _STRINGS_H
  2. #define _STRINGS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #undef NULL
  7. #ifdef __cplusplus
  8. #define NULL 0
  9. #else
  10. #define NULL ((void*)0)
  11. #endif
  12. #define __NEED_size_t
  13. #include <bits/alltypes.h>
  14. int bcmp (const void *, const void *, size_t);
  15. void bcopy (const void *, void *, size_t);
  16. void bzero (void *, size_t);
  17. int ffs (int);
  18. char *index (const char *, int);
  19. char *rindex (const char *, int);
  20. int strcasecmp (const char *, const char *);
  21. int strncasecmp (const char *, const char *, size_t);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif