| 1009 | #if !defined(_M_ARM64) && !defined(_M_ARM) |
| 1010 | |
| 1011 | int 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 | |
| 1027 | char* strncpy(char* dest, const char* src, size_t count) |
| 1028 | { |
no outgoing calls
no test coverage detected