strcmp

if (strcmp(str1, str2) < 0) { /* is str1 < str2 */
    /* do something */
}

s1 is less than s2 when?

This follows the ascii character set.

standard

wood

related

backlinks