Skip to content
Snippets Groups Projects
Select Git revision
  • 47fbe2beac25a805511f2dca459d67e1e6859c88
  • master default
2 results

fhello-6.c

Blame
  • Forked from Peter Gerwinski / hp
    362 commits behind the upstream repository.
    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;
    }