errx

Name

errx -- format error messages

Synopsis

#include <err.h>

void errx(int eval, const char *fmt ...);

Description

errx displays a formatted error message on the standard error output. The last component of the program name, a colon character, and a space are output. If fmt is non-NULL, the formatted error message, a colon character, and a space are output. The output is followed by a newline character.

errx does not return, but exits with the value of eval.