摘要:
<stdio.h>中定义了perror(),perror是在标准输出上输出msg字符串,然后再后面加上:错误语段(这个错误语段对应这时的errno) <string.h>中定义了strerror(),strerror是把一个错误numb作为参数,然后返回错误numb所对应的错误语段,一般用errno。#include <stdio.h>#include <... 阅读全文
posted @ 2009-11-17 15:54 feisky 阅读(4102) 评论(7) 推荐(0) 编辑