Slightly better implementation for ToUpperCase().

This commit is contained in:
Marcelo Roberto Jimenez 2010-10-20 00:36:47 -02:00
parent bf1450bf81
commit 113ebd1f91

View File

@ -772,15 +772,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;
}
/************************************************************************