strcasecmp.h 536 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * strcasecmp.h
  3. * prototypes for strcasecmp.c
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_STRCASECMP_H
  7. #define _EGG_COMPAT_STRCASECMP_H
  8. #include "src/common.h"
  9. #include <ctype.h>
  10. #ifndef HAVE_STRCASECMP
  11. /* Use our own implementation. */
  12. int egg_strcasecmp(const char *, const char *);
  13. #else
  14. # define egg_strcasecmp strcasecmp
  15. #endif
  16. #ifndef HAVE_STRNCASECMP
  17. /* Use our own implementation. */
  18. int egg_strncasecmp(const char *, const char *, size_t);
  19. #else
  20. # define egg_strncasecmp strncasecmp
  21. #endif
  22. #endif /* !__EGG_COMPAT_STRCASECMP_H */