1
0
Fork 0

changed upcase and lowercase code.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@582
This commit is contained in:
Peter Veenstra 2002-12-17 18:32:02 +00:00
parent a8cacc5c63
commit 4ff5924eb1

View file

@ -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;
}