fork download
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. void uppercase(FILE* in_file, FILE* out_file) {
  5. int c;
  6. while ((c = fgetc(in_file)) != EOF) {
  7. fputc(toupper(c), out_file);
  8. }
  9. }
  10.  
  11. int main() {
  12. FILE* in_file = stdin;
  13. FILE* out_file = stdout;
  14. uppercase(in_file, out_file);
  15. return 0;
  16. }
Success #stdin #stdout 0s 1792KB
stdin
afdsfdsfsadfsafA+fuck
stdout
AFDSFDSFSADFSAFA+FUCK