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

fhello-2.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;
    }