Remove already available strcasecmp function

This commit is contained in:
Petar Kapris 2020-12-17 23:41:02 +01:00
parent f72a68acd9
commit dbf40dbc53

View file

@ -151,25 +151,6 @@ char path[255]; /*seppy */
FILE *proc_file; /*seppy */
char comm[16]; /*seppy; to save the command of a pid */
#ifdef NEED_STRCASECMP
int strcasecmp(char *s1, char *s2)
{
while (*s1 && *s2) {
if (tolower(*s1) < tolower(*s2))
return -1;
else if (tolower(*s1) > tolower(*s2))
return 1;
s1++;
s2++;
}
if (*s1)
return -1;
if (*s2)
return 1;
return 0;
}
#endif
int main(argc, argv)
int argc;
char *argv[];