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