previous | start | next

C Strings: Comparison

        int strcmp(const char *s1, const char* s2);
     
Return value of
strcmp(str1, str2)
Meaning
less than 0 str1 is less than str2
equals 0 str1 is equal to str2
greater than 0 str1 is greater than str2


previous | start | next