EMILE/libunix/strcmp.c
Laurent Vivier 9bd9755dbb Update email address
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
2013-09-05 14:45:27 +02:00

19 lines
224 B
C

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