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.
 
 
 
 

21 lines
624 B

  1. #ifndef CASE_H
  2. #define CASE_H
  3. /* turn upper case letters to lower case letters, ASCIIZ */
  4. extern void case_lowers(char *s);
  5. /* turn upper case letters to lower case letters, binary */
  6. extern void case_lowerb(char *buf,unsigned long len);
  7. /* like str_diff, ignoring case */
  8. extern int case_diffs(const char *,const char *);
  9. /* like byte_diff, ignoring case */
  10. extern int case_diffb(const char *,unsigned long,const char *);
  11. /* like str_start, ignoring case */
  12. extern int case_starts(const char *,const char *);
  13. #define case_equals(s,t) (!case_diffs((s),(t)))
  14. #define case_equalb(s,n,t) (!case_diffb((s),(n),(t)))
  15. #endif