MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / _strnicmp

Function _strnicmp

Ext4Fsd/linux.c:987–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985#if _MSC_VER > 1900
986
987int _strnicmp(const char* str1, const char* str2, size_t count)
988{
989 unsigned int c1, c2;
990
991 if (!count)
992 return 0;
993
994 do {
995 c1 = *str1++;
996 c2 = *str2++;
997 if (!c1 || !c2)
998 break;
999 if (c1 == c2)
1000 continue;
1001 c1 = tolower(c1);
1002 c2 = tolower(c2);
1003 if (c1 != c2)
1004 break;
1005 } while (--count);
1006 return (int)c1 - (int)c2;
1007}
1008
1009#if !defined(_M_ARM64) && !defined(_M_ARM)
1010

Callers 3

Ext2StrLastAFunction · 0.85
Ext2IsWearingCloakFunction · 0.85
ext3_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected