#include <ctype.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
int | cbf_cistrcmp (const char *s1, const char *s2) |
int | cbf_cistrncmp (const char *s1, const char *s2, size_t n) |
int cbf_cistrcmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 130 of file cbf_string.c.
Referenced by cbf_lex().
{ while (*s1 && toupper (*s1) == toupper (*s2)) { s1++; s2++; } return toupper (*s1) - toupper (*s2); }
int cbf_cistrncmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
Definition at line 144 of file cbf_string.c.
Referenced by cbf_parse_mimeheader().
{ while (n > 0 && *s1 && toupper (*s1) == toupper (*s2)) { n--; s1++; s2++; } if (n == 0) return 0; return toupper (*s1) - toupper (*s2); }