MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / strcasecmp

Function strcasecmp

components/libc/compilers/common/cstring.c:128–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128int strcasecmp(const char* s1, const char* s2)
129{
130 const unsigned char* u1 = (const unsigned char*)s1;
131 const unsigned char* u2 = (const unsigned char*)s2;
132 int result;
133
134 while ((result = tolower(*u1) - tolower(*u2)) == 0 && *u1 != 0)
135 {
136 u1++;
137 u2++;
138 }
139
140 return result;
141}
142
143int strncasecmp(const char* s1, const char* s2, size_t n)
144{

Callers 1

at_find_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected