1
0
Fork 0

wildcmp, upcase in toupper

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@101
This commit is contained in:
Sjoerd van der Berg 2002-07-30 12:41:55 +00:00
parent aa5c7f77c9
commit 805f78cf16

View file

@ -85,7 +85,7 @@ char *trim(char *str) {
bool wildcmp(char *wild, char *string) {
char *cp, *mp;
while ((*string) && (*wild != '*')) {
if ((*upcase(wild) != *upcase(string)) && (*wild != '?')) {
if ((toupper(*wild) != toupper(*string)) && (*wild != '?')) {
return false;
}
@ -100,7 +100,7 @@ bool wildcmp(char *wild, char *string) {
}
mp = wild;
cp = string+1;
} else if ((*upcase(wild) == *upcase(string)) || (*wild == '?')) {
} else if ((toupper(*wild) == toupper(*string)) || (*wild == '?')) {
wild++;
string++;
} else {