mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Merge branch 'shell' into acpi
This commit is contained in:
commit
57ad3aae80
@ -39,9 +39,8 @@ int strcmp(const char *str1, const char *str2)
|
||||
//
|
||||
int strncmp(const char *str1, const char *str2, size_t n)
|
||||
{
|
||||
size_t it = 0;
|
||||
|
||||
while (*str1 == *str2 && *str2 && it < n) str1++, str2++, it++;
|
||||
while (n && *str1 && *str1 == *str2) str1++, str2++, n--;
|
||||
if (!n) return 0;
|
||||
|
||||
return *(uchar *)str1 - *(uchar *)str2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user