Skip to content
Snippets Groups Projects
Select Git revision
  • 8f69298e4d78863f74e7cef6abbe5cd46757daca
  • master default protected
  • cvh
  • main
4 results

README.md

Blame
  • 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;
    }