Skip to content

Instantly share code, notes, and snippets.

@yawara
Last active August 29, 2015 14:18
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 yawara/7a9c116593bbe300063c to your computer and use it in GitHub Desktop.
Save yawara/7a9c116593bbe300063c to your computer and use it in GitHub Desktop.
No Hello World
#include <stdio.h>
int main(void)
{
FILE* fp_out = freopen("/dev/null", "w", stdout);
FILE* fp_err = freopen("/dev/null", "w", stderr);
printf("Hello, world!\n");
fclose(fp_out);
fclose(fp_err);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment