36vwarn(
const char *fmt, va_list ap)
39 vfprintf(stderr, fmt, ap);
52 if (fmt != NULL && fmt[0] !=
'\0') {
55 fprintf(stderr,
"%s", strerror(errno));
64verrc(
const int code,
const char *fmt, va_list ap)
75verr(
const char *fmt, va_list ap)
77 verrc(EXIT_FAILURE, fmt, ap);
110errc(
const int code,
const char *fmt, ...)
115 verrc(code, fmt, ap);
void vwarn(const char *fmt, va_list ap)
Prints a formatted warning message to stderr.
void verrc(const int code, const char *fmt, va_list ap)
Prints a formatted error message to stderr and exits with the given exit code.
char * program_invocation_name
Global value for the program's name.
void ewarn(const char *fmt,...)
Prints a formatted error message to stderr.
void vewarn(const char *fmt, va_list ap)
Prints a formatted error message to stderr.
void err(const char *fmt,...)
Prints a formatted error message to stderr and exits.
void verr(const char *fmt, va_list ap)
Prints a formatted error message to stderr and exits.
void warn(const char *fmt,...)
Prints a formatted warning message to stderr.
void errc(const int code, const char *fmt,...)
Prints a formatted error message to stderr and exits with the given exit code.