ERRMSG(3)
okay bestie, welcome to ERRMSG(3) from SchilyΒ΄s LIBRARY FUNCTIONS β yes, that's the manual name, and we are obsessed β¨π
πΈ NAME πΈ
errmsg()β prints error message
β¨ SYNOPSIS β¨
errmsg (format, arg1...argn)
char *format;
π DESCRIPTION π
okay so listen: errmsg() prints on the error output stream a message corresponding to the last error encountered by the system on behalf of the process. no cap, that's the whole assignment π
it begins its output with the current program name (as passed to it by exec). and the message can be expanded with additional arguments, in the same form printf() would. iykyk β¨
π RETURNS π
none β literally none, bestie. the returns section ate and left no crumbs π«Ά
π¦ EXAMPLES π¦
vibe check, here's the example exactly:
while (more_args) {
if (( f = fileopen(arg, "r")) == NULL) {
errmsg("Skipping file %s.\n", arg);
continue;
}
doit(f)
}
π SEE ALSO π
π NOTES π
errmsg() is identical to comerr() except that instead of exiting, errmsg() prints the error message and returns to the caller. periodt π
that's the whole note.
xoxo, Joerg Schilling β 2022/09/09 β from SchilyΒ΄s LIBRARY FUNCTIONS, page ERRMSG(3) ππ
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms