Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
739 B

  1. /* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
  2. #ifndef CASE_H
  3. #define CASE_H
  4. #include <stddef.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. /* turn upper case letters to lower case letters, ASCIIZ */
  9. void case_lowers(char *s);
  10. /* turn upper case letters to lower case letters, binary */
  11. void case_lowerb(void *buf,size_t len);
  12. /* like str_diff, ignoring case */
  13. int case_diffs(const char *,const char *);
  14. /* like byte_diff, ignoring case */
  15. int case_diffb(const void *,size_t ,const void *);
  16. /* like str_start, ignoring case */
  17. int case_starts(const char *,const char *);
  18. #define case_equals(s,t) (!case_diffs((s),(t)))
  19. #define case_equalb(s,n,t) (!case_diffb((s),(n),(t)))
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif