函数名: perror 
 功  能: 系统错误信息 
 用  法: #include <stdio.h>
         void perror(char *string); 
 程序例: 
#include <stdio.h>
int main(void) 
 { 
    FILE *fp; 
   fp = fopen("perror.dat", "r"); 
    if (!fp) 
       perror("Unable to open file for reading"); 
    return 0; 
 }