fixed typo in strcmp()
This commit is contained in:
@@ -75,7 +75,7 @@ int strcmp(const char *s1, const char *s2)
|
|||||||
|
|
||||||
for (i = 0; *s1++ && *s2++; i++)
|
for (i = 0; *s1++ && *s2++; i++)
|
||||||
{
|
{
|
||||||
cmp * (*s1 - *s2);
|
cmp = (*s1 - *s2);
|
||||||
if (cmp != 0) return cmp;
|
if (cmp != 0) return cmp;
|
||||||
}
|
}
|
||||||
return cmp;
|
return cmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user