changed upcase and lowercase code.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@582
This commit is contained in:
parent
a8cacc5c63
commit
4ff5924eb1
1 changed files with 4 additions and 6 deletions
|
@ -45,15 +45,13 @@ bool ScanCMDHex(char * cmd,char * check,Bits * result);
|
|||
char * StripWord(char * cmd);
|
||||
|
||||
INLINE char * upcase(char * str) {
|
||||
char * oldstr=str;
|
||||
while (*str) *str++=toupper(*str);
|
||||
return oldstr;
|
||||
for (char* idx = str; *idx ; idx++) *idx = toupper(*idx);
|
||||
return str;
|
||||
}
|
||||
|
||||
INLINE char * lowcase(char * str) {
|
||||
char * oldstr=str;
|
||||
while (*str) *str++=tolower(*str);
|
||||
return oldstr;
|
||||
for(char* idx = str; *idx ; idx++) *idx = tolower(*idx);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue