ERRMSGNO(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

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