MCPcopy Create free account
hub / github.com/crownengine/crown / strncasecmp

Function strncasecmp

3rdparty/openal/common/alstring.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32int strncasecmp(const char *str0, const char *str1, std::size_t len) noexcept
33{
34 if(len > 0)
35 {
36 do {
37 const int diff{to_upper(*str0) - to_upper(*str1)};
38 if(diff < 0) return -1;
39 if(diff > 0) return 1;
40 } while(--len && *(str0++) && *(str1++));
41 }
42 return 0;
43}
44
45} // namespace al

Callers 3

extension.cppFile · 0.50
alc_initconfigFunction · 0.50
alc.cppFile · 0.50

Calls 1

to_upperFunction · 0.85

Tested by

no test coverage detected