strerror

#include<stdio.h>
#include<string.h>
#include<errno.h>
void main(void )
{
	printf("ENOENT:
");
	char *mesg=strerror(ENOENT);
	printf(" Errno :%d
",ENOENT);
	printf(" Message:%s
",mesg);

	printf("EIO	:
");
	char *mesg1=strerror(EIO);
	printf(" Errno :%d
",EIO);
	printf(" Message:%s
",mesg1);

	printf("EEXIST	:
");
	char *mesg2=strerror(EEXIST);
	printf(" Errno :%d
",EEXIST);
	printf(" Message:%s
",mesg2);
}
原文地址:https://www.cnblogs.com/yufenghou/p/3312206.html