Slightly better implementation for ToUpperCase().

(cherry picked from commit 113ebd1f910a3863a0f16ffec2bee27e693d6ba2)
This commit is contained in:
Marcelo Roberto Jimenez 2010-10-20 00:36:47 -02:00
parent b67c321869
commit c874c62472

View File

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