Skip to content

Instantly share code, notes, and snippets.

@funrep
Created September 19, 2012 18:33
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/3751341 to your computer and use it in GitHub Desktop.
Save funrep/3751341 to your computer and use it in GitHub Desktop.
FOOBAR!!!1
/* FOOBAR */
#include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
nc = nc + 1;
printf("%d\n", nc);
}
/* im using mksh(basically kornshell) how do i run this program so it reads a file? */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment