Change string_is_equal_noncase to just a strcasecmp wrapper for now

This commit is contained in:
Twinaphex 2016-01-21 01:00:47 +01:00
parent 9e2be63b75
commit 447468a39d

View File

@ -46,15 +46,7 @@ bool string_is_equal(const char *a, const char *b)
bool string_is_equal_noncase(const char *a, const char *b)
{
int ca, cb;
do
{
ca = (unsigned char)*a++;
cb = (unsigned char)*b++;
ca = tolower(toupper(ca));
cb = tolower(toupper(cb));
} while (ca == cb && ca != '\0');
return (ca - cb) == 0;
return (strcasecmp(a, b) == 0);
}
char *string_to_upper(char *s)