SHARE
TWEET

Untitled

a guest Apr 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <string.h>
  2.  
  3. #define MAX 50
  4. #define MAX_S 80
  5.  
  6. void tolwr(char(*lista)[MAX_S], int length);
  7. void toupr(char(*lista)[MAX_S], int length);
  8.  
  9. void tolwr(char(*lista)[MAX], int length)
  10. {
  11.     int i,j;
  12.  
  13.     for (j = 0; j < strlen(lista[j]); j++)
  14.         for (i = 0; i < MAX_S; i++)
  15.             lista[j][i] = tolower(lista[j][i]);
  16.  
  17.     return ;
  18. }
  19.  
  20. void toupr(char(*lista)[MAX_S], int length)
  21. {
  22.     int i, j;
  23.  
  24.     for (j = 0; j < strlen(lista[j]); j++)
  25.         for (i = 0; i < MAX_S; i++)
  26.             lista[j][i] = toupper(lista[j][i]);
  27.  
  28.     return ;
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top