Skip to content

Instantly share code, notes, and snippets.

@banthar
Created June 1, 2014 22:34
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 banthar/f4b99c7963ceba439567 to your computer and use it in GitHub Desktop.
Save banthar/f4b99c7963ceba439567 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char* argv[]) {
FILE * filePointer = NULL;
filePointer = stdin;
char inputText[300];
if (fgets(inputText, sizeof(inputText), filePointer) != NULL ) //!= EOF
{
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment