1 // 2 // compile as: 3 // g++ -c alias.cxx 4 // ar rcs libalias.a alias.o 5 // 6 7 #include <string.h> 8 #include <ctype.h> 9 10 namespace str 11 { 12 void ucaseme( char *s ) 13 { 14 int len = strlen( s ); 15 16 for( int i = 0; i < len; i++ ) { 17 int c = s[i]; 18 if( islower( c ) ) 19 s[i] = toupper( c ); 20 } 21 } 22 }