k-tana-zero/libs/libc/strcasecmp.c
Julien CLEMENT 7178dbb6a7 feat: add given files
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2021-07-12 15:57:08 +02:00

11 lines
180 B
C

#include <ctype.h>
int strcasecmp(const char *s1, const char *s2)
{
for (; *s1; s1++, s2++)
if (tolower(*s1) != tolower(*s2))
break;
return tolower(*s1) - tolower(*s2);
}