49 #include <sys/types.h>
63 if (strchr(set, *
string))
84 while (tolower(*op1) == tolower(*op2))
94 return(tolower(*op1) - tolower(*op2));
109 const char *op1 = (
const char *)mem1;
110 const char *op2 = (
const char *)mem2;
113 if (tolower(*op1) != tolower(*op2))
115 return tolower(*op1) - tolower(*op2);
136 *str = toupper(*str);
155 *str = tolower(*str);
174 const char *endPtr = data + n;
175 while (data < endPtr && *data !=
'\0')
static const char * strnchr(const char *, sizeB_t n, char ch)
static void strupper(char *str)
static void strlower(char *str)
static int strCaselessCompare(const char *opt1, const char *opt2)
static const char * locateCharacter(const char *s, const char *set, sizeB_t l)
static int memicmp(const void *opt1, const void *opt2, size_t len)