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

fhello-3.c

Blame
  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    fhello-3.c 238 B
    #include <stdio.h>
    #include <errno.h>
    
    int main (void)
    {
      FILE *f = fopen ("fhello.txt", "w");
      if (f)
        {
          fprintf (f, "Hello, world!\n");
          fclose (f);
        }
      else
        fprintf (stderr, "error #%d\n", errno);
      return 0;
    }