MCPcopy Index your code
hub / github.com/F-Stack/f-stack / strcasecmp

Function strcasecmp

freebsd/libkern/strcasecmp.c:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#include <sys/libkern.h>
42
43int
44strcasecmp(const char *s1, const char *s2)
45{
46 const u_char *us1 = (const u_char *)s1, *us2 = (const u_char *)s2;
47
48 while (tolower(*us1) == tolower(*us2)) {
49 if (*us1++ == '\0')
50 return (0);
51 us2++;
52 }
53 return (tolower(*us1) - tolower(*us2));
54}
55
56int
57strncasecmp(const char *s1, const char *s2, size_t n)

Callers 15

setdefifFunction · 0.85
setclasscpumaskFunction · 0.85
isinfiniteFunction · 0.85
set80211authmodeFunction · 0.85
set80211powersavemodeFunction · 0.85
set80211wepmodeFunction · 0.85
set80211protmodeFunction · 0.85
set80211htprotmodeFunction · 0.85
set80211roamingFunction · 0.85
getacFunction · 0.85
ifieee80211.cFile · 0.85
lookup_media_wordFunction · 0.85

Calls 1

tolowerFunction · 0.85

Tested by 5

stream_trimFunction · 0.68
value_or_deleteFunction · 0.68
test_reply_readerFunction · 0.68
test_blocking_connectionFunction · 0.68
test_blocking_io_errorsFunction · 0.68