1#include <ctype.h> 2 3char *strupr(char *str) 4{ 5 char *ret = str; 6 while(*str) 7 { 8 *str = toupper(*str); 9 ++str; 10 } 11 return ret; 12} 13 14