Skip to content

Instantly share code, notes, and snippets.

@mrluanma
Created June 7, 2010 01:43
Show Gist options
  • Save mrluanma/428109 to your computer and use it in GitHub Desktop.
Save mrluanma/428109 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int
main(int argc, char**argv)
{
FILE *fp;
int c;
fp = fopen("showself.c", "r");
while ((c = fgetc(fp)) != EOF) {
putchar(c);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment