The strcmp function

Name

strcmp -- 

Synopsis

#include <string.h>

void *strcmp (char *s1, char *s2);

Description

The strcmp function compares the string pointed to by s1 to the string pointed to by s2.

Returns

The strcmp function returns an integer greater than, equal to, or less than zero, accordingly as the string pointed to by s1 is greater than, equal to, or less than the string pointed to by s2.

See Also

The strncmp function
The memcmp function