标签:
man 3 errno
/* * 1.8DemonstrateStrerrorAndPerror.cpp * * Created on: Feb 11, 2015 * Author: sunyj */ #include "../apuesunyj.h" int main(int argc, char *argv[]) { fprintf(stderr, "EACCES: %s\n", strerror(EACCES)); errno = ENOENT; perror(argv[0]); return 0; }
APUE_1.7ErrorHandling Figure1.8Demonstrate strerror and perror
标签:
原文地址:http://www.cnblogs.com/sunyongjie1984/p/4320789.html