Syntax
#include <string.h>
int strcmp(const char *str1, const char *str2)
Arguments
str1 pointer to a character string buffer
str2 pointer to another character string buffer
Return Value
A value less than 0
str1 is less than str2
A value equal to 0
str1 is equal to str2
A value greater than 0
str1 is greater than str2
Description
It compares str1 to str2 lexicographically.