EMILE/libunix/strcmp.c
2006-09-15 14:55:39 +00:00

19 lines
227 B
C

/*
*
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
*
*/
#include <string.h>
int strcmp(const char *__s1, const char *__s2)
{
while (*__s1 && *__s1 == *__s2)
{
__s1++;
__s2++;
}
return (*__s1 - *__s2);;
}