strings.h 864 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * strings.h
  3. *
  4. * Definitions for string operations.
  5. */
  6. #ifndef _STRINGS_H_
  7. #define _STRINGS_H_
  8. #include "_ansi.h"
  9. #include <sys/reent.h>
  10. #include <sys/types.h> /* for size_t */
  11. _BEGIN_STD_C
  12. #if !defined __STRICT_ANSI__ && _POSIX_VERSION < 200809L
  13. /*
  14. * Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004
  15. * Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
  16. */
  17. int _EXFUN(bcmp,(const void *, const void *, size_t));
  18. void _EXFUN(bcopy,(const void *, void *, size_t));
  19. void _EXFUN(bzero,(void *, size_t));
  20. char *_EXFUN(index,(const char *, int));
  21. char *_EXFUN(rindex,(const char *, int));
  22. #endif /* ! __STRICT_ANSI__ */
  23. int _EXFUN(ffs,(int));
  24. int _EXFUN(strcasecmp,(const char *, const char *));
  25. int _EXFUN(strncasecmp,(const char *, const char *, size_t));
  26. _END_STD_C
  27. #endif /* _STRINGS_H_ */