Skip to content

Instantly share code, notes, and snippets.

@zrbecker
Created March 29, 2011 00:48
Show Gist options
  • Save zrbecker/891632 to your computer and use it in GitHub Desktop.
Save zrbecker/891632 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv)
{
char *msg = (char *)calloc(13, sizeof(char));
strcpy(msg, "Hello World!");
FILE *out = fopen("/dev/stdout", "w");
fprintf(out, "%s\n", msg);
fclose(out);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment