Skip to content

Instantly share code, notes, and snippets.

@kokosabu
Created October 30, 2015 15:21
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 kokosabu/8b6f99ad7d38734b76c1 to your computer and use it in GitHub Desktop.
Save kokosabu/8b6f99ad7d38734b76c1 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int i;
fprintf(stdout, "stdout:%d\n", 10);
fprintf(stderr, "stderr:%d\n", 10);
printf("fclose(stdout)\n");
fclose(stdout);
fprintf(stdout, "stdout:%d\n", 10);
fprintf(stderr, "stderr:%d\n", 10);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment