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