mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Change string_is_equal_noncase to just a strcasecmp wrapper for now
This commit is contained in:
parent
9e2be63b75
commit
447468a39d
1 changed files with 1 additions and 9 deletions
|
@ -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…
Add table
Reference in a new issue