打印错误信息的函数是什么
#include <stdio.h>
#include <errno.h>
#include <string.h>
extern int errno;
void errno_use()
{
FILE* text;
text = fopen("1.txt","r");
if (text == NULL)
{
printf("\nopen error: %d\n", errno);
printf("\nerror discription:%s\n", strerror(errno));
}
else
{
printf("open sucess!");
fclose(text);
}
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-54283.html