MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_strnicmp

Function mi_strnicmp

3rd/mimalloc-2.0.9/src/options.c:523–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522#endif
523static int mi_strnicmp(const char* s, const char* t, size_t n) {
524 if (n == 0) return 0;
525 for (; *s != 0 && *t != 0 && n > 0; s++, t++, n--) {
526 if (toupper(*s) != toupper(*t)) break;
527 }
528 return (n == 0 ? 0 : *s - *t);
529}
530static bool mi_getenv(const char* name, char* result, size_t result_size) {
531 if (name==NULL) return false;
532 const size_t len = strlen(name);

Callers 1

mi_getenvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected