#include <stdio.h> #include <errno.h> int main(void){ FILE *fp; fp = fopen("test.txt", "r"); if (fp == NULL){ perror("fopen error"); return -1; } return 0; }
タグ: