APUE_1.7ErrorHandling Figure1.8Demonstrate strerror and perror

KFK10(Y4[94HKTQT[5F(33X

 

man 3 errno

 

Z_AXEJ2L(8)T5K{]~G{I$N3

 

4HCJN%B33CZPE(F29`}J~66

 

{A~AJ[EITPG{[(`P%F)%GYP

 

MRKBJ(P{VDT9$ZQ(ZJWL3N3

 

/*
 * 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;
}

 

 

 

 

 

 

 

 

 

 

 

 

 

IMG_1292

 

IMG_1294

IMG_1295

IMG_1296

IMG_1297

IMG_1298

IMG_1299

IMG_1300

IMG_1301

IMG_1302IMG_1303IMG_1304IMG_1305

IMG_1306IMG_1307IMG_1308IMG_1309

IMG_1310

IMG_1311

posted @ 2015-03-07 19:02  孙永杰  阅读(372)  评论(0编辑  收藏  举报