Advertisement
raulcruise

Broken tolower

Jul 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <cs50.h>
  2. #include <ctype.h>
  3. #include <stdio.h>
  4.  
  5. #include <string.h>
  6.  
  7. int main(void)
  8. {
  9.     string p = get_string("Plaintext: ");
  10.     for (int i = 0; i < strlen(p); i++)
  11.     {
  12.         tolower(p[i]);
  13.         printf("%s\n",p);
  14.     }
  15.     printf("%s\n",p);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement