Slightly better implementation for ToUpperCase().
This commit is contained in:
parent
bf1450bf81
commit
113ebd1f91
@ -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;
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user