Skip to content
Snippets Groups Projects
Select Git revision
  • d48edcd327479e7a230e1a34684f251a5cd47337
  • master default protected
  • 2018ws
  • 2017ws
  • 2016ws
5 results

fhello-5.c

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