Skip to content

Instantly share code, notes, and snippets.

@fcuny
Created July 12, 2015 04:15
Show Gist options
  • Save fcuny/d208c34a0b8397f3e4ca to your computer and use it in GitHub Desktop.
Save fcuny/d208c34a0b8397f3e4ca to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
FILE *fh;
if ((fh = fopen("/etc/issue", "r")) == NULL) {
perror("fopen");
return 1;
}
fclose(fh);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment