mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
Change string_is_equal_noncase to just a strcasecmp wrapper for now
This commit is contained in:
parent
9e2be63b75
commit
447468a39d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user