Last active
December 23, 2015 22:59
-
-
Save giuscri/6706863 to your computer and use it in GitHub Desktop.
silly code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int | |
main(int argc, char* argv[]) | |
{ | |
int single_byte = getchar(); | |
while (single_byte != EOF) { | |
single_byte = getchar(); | |
printf("getchar() != EOF is %d.\n", single_byte != EOF); | |
if (single_byte == EOF) | |
printf("EOF is implemented in terms of 0x%x.\n", single_byte); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment