perrorプロジェクト

perror.c

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

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2010年07月08日 15:28