whiplk

wii_strtoupper

Feb 6th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.32 KB | None | 0 0
  1. //printa o valor de uma string minuscula como maiuscula
  2. //By Willian Luigi
  3. stock wii_strtoupper(str[]) {
  4.     new string[128];
  5.     strins(string, str, 0);
  6.     for(new ii; ii != strlen(str); ii++) {
  7.         if(str[ii] > 96 && str[ii] < 123) {
  8.             str[ii] -= 32;
  9.         }
  10.     }
  11.     printf("%s", string);
  12.     printf("%s", str);
  13.     return false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment