MCPcopy Create free account
hub / github.com/dachev/node-cld / strcasecmp

Function strcasecmp

chromium/base/string_util.h:18–20  ·  view source on GitHub ↗

Compare the two strings s1 and s2 without regard to case using the current locale; returns 0 if they are equal, 1 if s1 > s2, and -1 if s2 > s1 according to a lexicographic comparison.

Source from the content-addressed store, hash-verified

16// the current locale; returns 0 if they are equal, 1 if s1 > s2, and -1 if
17// s2 > s1 according to a lexicographic comparison.
18inline int strcasecmp(const char* s1, const char* s2) {
19 return _stricmp(s1, s2);
20}
21#else
22inline int strcasecmp(const char* s1, const char* s2) {
23 return ::strcasecmp(s1, s2);

Callers 1

LanguageFromCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected