2005-11-12 21:30:19 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* (c) 2004,2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2005-11-12 19:13:52 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int strcmp(const char *__s1, const char *__s2)
|
|
|
|
{
|
|
|
|
while (*__s1 && *__s1 == *__s2)
|
|
|
|
{
|
|
|
|
__s1++;
|
|
|
|
__s2++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (*__s1 - *__s2);;
|
|
|
|
}
|