file/testerror.c
1 #include "apue.h" 2 #include3 int 4 main(int argc, char *argv[]) 5 { 6 fprintf(stderr, "EACCES: %s\n", strerror(EACCES)); 7 errno = ENOENT; 8 perror(argv[0]); 9 exit(0);10 }
本文共 277 字,大约阅读时间需要 1 分钟。
file/testerror.c
1 #include "apue.h" 2 #include3 int 4 main(int argc, char *argv[]) 5 { 6 fprintf(stderr, "EACCES: %s\n", strerror(EACCES)); 7 errno = ENOENT; 8 perror(argv[0]); 9 exit(0);10 }
转载于:https://www.cnblogs.com/paullam/p/3844014.html