1 2 3 4 5 6 7 8 9 10 11
#include<stdio.h> int main(int argc, char **argv) { FILE *fp = fopen(argv[1], "r"); if (fp == NULL) { perror("fopen"); return 1; } else { return 0; } }