📄 perror.c
字号:
#include <stdioprivate.h>#include <errno.h>#include <string.h>#ifndef errnoextern int errno;#endifextern "C" char* strerror(int);void perror (const char *s){ char *error; if (s != NULL && *s != '\0') { fputs (s, stderr); fputs (": ", stderr); } if ((error = strerror (errno)) != NULL) fputs (error, stderr); fputc ('\n', stderr);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -