Wednesday, October 15, 2014

@codingexercise
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