MCPcopy Create free account
hub / github.com/F-Stack/f-stack / strncasecmp

Function strncasecmp

freebsd/libkern/strcasecmp.c:56–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56int
57strncasecmp(const char *s1, const char *s2, size_t n)
58{
59
60 if (n != 0) {
61 const u_char *us1 = (const u_char *)s1;
62 const u_char *us2 = (const u_char *)s2;
63
64 do {
65 if (tolower(*us1) != tolower(*us2))
66 return (tolower(*us1) - tolower(*us2));
67 if (*us1++ == '\0')
68 break;
69 us2++;
70 } while (--n != 0);
71 }
72 return (0);
73}

Callers 15

trimdomainFunction · 0.85
isanyargFunction · 0.85
isundefargFunction · 0.85
set80211protmodeFunction · 0.85
set80211htprotmodeFunction · 0.85
ifvlan.cFile · 0.85
MatchCommandFunction · 0.85
zpool_vdev_nameFunction · 0.85
libzfs_envvar_is_setFunction · 0.85
libzfs_load_module_implFunction · 0.85
mainFunction · 0.85

Calls 1

tolowerFunction · 0.85

Tested by 3

parse_uintFunction · 0.68
blockonkeys_lpushFunction · 0.68
getkeys_commandFunction · 0.68