@codingexercise
Int strcmp (char* a, char* b)
{
If (a ==null || b == null) return -1;
While (*a && *b && *a == *b )
{
a++;
b++;
}
Return (*a-*b);
}
Int strcmp (char* a, char* b)
{
If (a ==null || b == null) return -1;
While (*a && *b && *a == *b )
{
a++;
b++;
}
Return (*a-*b);
}
No comments:
Post a Comment