Skip to content

Instantly share code, notes, and snippets.

@nicferrier
Created June 1, 2013 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicferrier/5690889 to your computer and use it in GitHub Desktop.
Save nicferrier/5690889 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int
main (char** argv, int argc)
{
char ch = fgetc(stdin);
while (!feof(stdin)) {
write(ch);
ch = fgetc(stdin);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment