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

Function strncmp

Ext4Fsd/linux.c:1011–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009#if !defined(_M_ARM64) && !defined(_M_ARM)
1010
1011int strncmp(const char* str1, const char* str2, size_t count)
1012{
1013 unsigned char c1, c2;
1014
1015 while (count) {
1016 c1 = *str1++;
1017 c2 = *str2++;
1018 if (c1 != c2)
1019 return c1 < c2 ? -1 : 1;
1020 if (!c1)
1021 break;
1022 count--;
1023 }
1024 return 0;
1025}
1026
1027char* strncpy(char* dest, const char* src, size_t count)
1028{

Callers 1

Ext2GetProcessNameOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected