Select Git revision
Forked from
Peter Gerwinski / hp
46 commits behind the upstream repository.
Peter Gerwinski authored
fhello-5.c 230 B
#include <stdio.h>
#include <errno.h>
#include <error.h>
int main (void)
{
FILE *f = fopen ("fhello.txt", "w");
if (!f)
error (1, errno, "cannot open file");
fprintf (f, "Hello, world!\n");
fclose (f);
return 0;
}