Linux repositories inspector

errmsgno(3)

J..org Schilling
15. Juli 1988

libschily-devel-doc

Manual pages for libschily functions

NAME

errmsgno() - prints error message, given error code

SYNOPSIS


errmsgno (errcode, format, arg1...argn)
int errcode;
char *format;

DESCRIPTION

errmsgno() prints an error output message corresponding to errcode, which is a standard system error. errmsgno() begins its output with the current program name (as passed to it by exec ). The message can be expanded with additional arguments in the same form printf() would.

RETURNS

none

NOTES

errmsgno() is identical to comerrno() except instead of exiting, it prints the error message and returns to the caller. If the errcode argument is positive, errmsgno() ignores it and just prints the program name and the result of expanding format().
⇧ Top