perror函数与strerror函数
摘要:        
perror函数与strerror函数#include <stdio.h>// void perror(const char *msg);#include <string.h> // char *strerror(int errnum);#include <errno.h> //errnoerrno是错误代码,在errno.h头文件中void perror(const char *s)perror是错误输出函数,在标准输出设备上输出一个错误信息。参数s一般是参数错误的函数例如perror("fun"),其输出为:fun:后面跟着错误信息(    阅读全文
        posted @ 2012-04-12 15:50 Richard.FreeBSD 阅读(705) 评论(0) 推荐(0)
 
                    
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号