⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perror.3

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 3
字号:
.TH PERROR 3 .SH NAMEperror, sys_errlist, sys_nerr \- system error messages.SH SYNOPSIS.B perror(s).br.B char *s;.PP.B int sys_nerr;.br.B char *sys_errlist[];.SH DESCRIPTION.I Perrorproduces a short error messageon the standard error filedescribing the last error encountered during a callto the system from a C program.First the argument string.I sis printed, then a colon, then the message and a new-line.Most usefully, the argument string is the nameof the program which incurred the error.The error number is taken from the external variable.I errno(see.IR intro (2)),which is set when errors occur but not cleared whennon-erroneous calls are made..PPTo simplify variant formattingof messages, the vector of message strings.I sys_errlistis provided;.I errnocan be used as an index in this table to get themessage string without the newline..I Sys_nerris the number of messages provided for in the table;it should be checked because newerror codes may be added to the system beforethey are added to the table..SH "SEE ALSO"intro(2)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -