mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 04:23:38 +01:00
Update 'src/string/strncmp.c'
This commit is contained in:
parent
ddec761f61
commit
ee42660ea5
1 changed files with 1 additions and 1 deletions
|
@ -7,5 +7,5 @@ int strncmp(const char *s1, const char *s2, size_t n)
|
|||
size_t i = -1;
|
||||
while (++i < n - 1 && s1[i] != '\0' && s2[i] != '\0'
|
||||
&& s1[i] == s2[i]) ;
|
||||
return (s1[i] - s2[i]);
|
||||
return ((unsigned char) s1[i] - (unsigned char) s2[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue