wildcmp, upcase in toupper
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@101
This commit is contained in:
parent
aa5c7f77c9
commit
805f78cf16
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue