Slightly better implementation for ToUpperCase().
(cherry picked from commit 113ebd1f910a3863a0f16ffec2bee27e693d6ba2)
This commit is contained in:
parent
b67c321869
commit
c874c62472
@ -776,15 +776,14 @@ isFileInVirtualDir( IN char *filePath )
|
||||
* Returns:
|
||||
* int
|
||||
************************************************************************/
|
||||
int
|
||||
ToUpperCase( char *Str )
|
||||
int ToUpperCase(char *s)
|
||||
{
|
||||
int i;
|
||||
|
||||
for( i = 0; i < ( int )strlen( Str ); i++ )
|
||||
Str[i] = toupper( Str[i] );
|
||||
return 1;
|
||||
while (*s) {
|
||||
*s = toupper(*s);
|
||||
++s;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user