Skip to content
Snippets Groups Projects
Select Git revision
  • 2018ws
  • 2024ws default
  • 2023ws
  • 2022ws
  • 2021ws
  • 2020ws
  • 2019ws
  • 2017ws
  • 2016ws
9 results

hp-slides-2018ws.tex

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