welibc
A clear, secure, and well documented standard C library
|
Defines the strcmp function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
int | strcmp (const char *s1, const char *s2) |
Compares the strings pointed to be s1 and s2. More... | |
Defines the strcmp function.
Definition in file strcmp.c.
int strcmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Compares the strings pointed to be s1 and s2.
*s1 | The first string to be compared |
*s2 | The second string to be compared |
The strcmp function compares the string pointed to by s1 to the string pointed to by s2.
>0 | s1 is greater than s2 or no comparison could be made |
0 | s1 is equal to s2 |
<0 | s1 is less than s2 |
Definition at line 54 of file strcmp.c.
References memcmp(), and strlen().