Files
Upsilon/liba/src/strcmp.c
Felix Raimundo d84e139954 Remove some warnings.
Change-Id: I5a856edc3ebc7ccb352865d62b2b12cdfc8426ca
2016-03-22 18:39:59 +01:00

10 lines
187 B
C

#include <string.h>
int strcmp(const char *s1, const char *s2) {
while(*s1 != NULL && *s1 == *s2) {
s1++;
s2++;
}
return (*(unsigned char *)s1) - (*(unsigned char *)s2);
}