strcmp is a standard C library function that compares two strings lexicographically (character by character). It returns a negative value if the first string is less than the second, zero if they're equal, and positive if the first is greater. It cannot compare three strings at once, nor does it copy strings.