Skip to content

Commit

Permalink
Added code for lowercasing a stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasham committed May 6, 2016
1 parent c7d1b53 commit 475aa57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions exercises/chapter7/code-7-1-lower-stream.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <stdio.h>
#include <ctype.h>

int main(int argc, char *argv[]) {
int c;

while ((c = getchar()) != EOF)
putchar(tolower(c));

return 0;
}
2 changes: 2 additions & 0 deletions exercises/chapter7/testfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
All Good Things Come to Those Who Wait.
Now is the Time for All Good Men to come to the Aid of their Country.

0 comments on commit 475aa57

Please sign in to comment.