摘要: 首先简单说一下file descriptors(文件描述符): file descriptor 0是standard input (stdin标准输入) file descriptor 1 是 standard output (stdout标准输出) file descriptor 2 是 standard error output(stderr标准错误输出)perror()原型:#include <stdio.h>void perror(const char *msg);它是基于errno的当前值,在标准出错上产生一条出错信息,然后返回。它首先输出由msg指向的字符串,然后是一个 阅读全文
posted @ 2012-12-16 23:44 wust.zjf 阅读(4393) 评论(0) 推荐(4) 编辑