ERRMSGNO(3)
okay bestie, welcome to ERRMSGNO(3) from SchilyΒ΄s LIBRARY FUNCTIONS β this one is short, sweet, and lowkey iconic π
β¨ NAME β¨
errmsgno() β prints an error message, given an error code π
π¦ SYNOPSIS π¦
here's the whole vibe, character for character:
errmsgno (errcode, format, arg1...argn)
int errcode;
char *format;
π DESCRIPTION π
okay so errmsgno() prints an error output message corresponding to errcode, and errcode is a standard system error β¨
the way that errmsgno() begins its output with the current program name is honestly main character energy β specifically, the 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 β that's it, that's the whole return situation π
π SEE ALSO π
go read these too, bestie:
π NOTES π
errmsgno() is identical to comerrno() except instead of exiting, it prints the error message and returns to the caller π«Ά
and if the errcode argument is positive, errmsgno() ignores it and just prints the program name and the result of expanding format() β periodt π
π cute sign-off time: this page is by Joerg Schilling, dated 2022/09/09, for ERRMSGNO(3) β slay, bye bestie π
π¦ 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