You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
660 B
C
22 lines
660 B
C
23 years ago
|
#ifndef CASE_H
|
||
|
#define CASE_H
|
||
|
|
||
|
/* turn upper case letters to lower case letters, ASCIIZ */
|
||
|
extern void case_lowers(char *s);
|
||
|
/* turn upper case letters to lower case letters, binary */
|
||
|
extern void case_lowerb(char *buf,unsigned int len);
|
||
|
|
||
|
/* like str_diff, ignoring case */
|
||
|
extern int case_diffs(const char *,const char *);
|
||
|
/* like byte_diff, ignoring case */
|
||
|
extern int case_diffb(const char *,unsigned int,const char *);
|
||
|
|
||
|
/* like str_start, ignoring case */
|
||
|
extern int case_starts(const char *,const char *);
|
||
|
/* alias for case_diffb? */
|
||
|
extern int case_startb(const char *,unsigned int,const char *);
|
||
|
|
||
|
#define case_equals(s,t) (!case_diffs((s),(t)))
|
||
|
|
||
|
#endif
|