mescc: Mes C Library: Prepare for M2-Planet: strcmp.
* lib/string/strcmp.c: Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
parent
0ca159041d
commit
c117abe06a
|
@ -23,10 +23,11 @@
|
||||||
int
|
int
|
||||||
strcmp (char const *a, char const *b)
|
strcmp (char const *a, char const *b)
|
||||||
{
|
{
|
||||||
while (*a && *b && *a == *b)
|
while (a[0] != 0 && b[0] != 0 && a[0] == b[0])
|
||||||
{
|
{
|
||||||
a++;
|
a = a + 1;
|
||||||
b++;
|
b = b + 1;
|
||||||
}
|
}
|
||||||
return *a - *b;
|
|
||||||
|
return a[0] - b[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue