系统错误处理

当Unix 系统函数遇到错误时,他们典型会返回-1 并设置全局变量errorhtml #include <stdio.h> #include <fcntl.h> #include <cstring> #include <cerrno> int main(int argc, char **argv){ int file_fb=open("test.txt",O_RDWR,0);
相关文章
相关标签/搜索