Skip to content

Instantly share code, notes, and snippets.

@funrep
Created September 22, 2012 18:08
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 funrep/3767254 to your computer and use it in GitHub Desktop.
Save funrep/3767254 to your computer and use it in GitHub Desktop.
foobar.c
#include <stdio.h>
main()
{
int c;
while ((c = getchar()) != EOF) {
if (c == '\t' || c == '\n')
putchar('\n');
}
putchar(c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment