#include <stdarg.h>
Go to the source code of this file.
Defines | |
#define | _ABLE_CLIB_ERR_H 1 |
Functions | |
void | err (int eval, const char *fmt,...) |
Display a formatted error message on stderr and exit. | |
void | verr (int eval, const char *fmt, va_list ap) |
Display a formatted error message on stderr and exit. | |
void | errx (int, const char *,...) |
Display a formatted error message on stderr and exit. | |
void | verrx (int, const char *, va_list ap) |
Display a formatted error message on stderr and exit. | |
void | warn (const char *fmt,...) |
Display a formatted error message on stderr. | |
void | vwarn (const char *fmt, va_list ap) |
Display a formatted error message on stderr. | |
void | warnx (const char *fmt,...) |
Display a formatted error message on stderr. | |
void | vwarnx (const char *fmt, va_list ap) |
Display a formatted error message on stderr. | |
void | _err (int, const char *,...) |
void | _verr (int, const char *, va_list ap) |
void | _errx (int, const char *,...) |
void | _verrx (int, const char *, va_list ap) |
void | _warn (const char *,...) |
void | _vwarn (const char *, va_list ap) |
void | _warnx (const char *,...) |
void | _vwarnx (const char *, va_list ap) |
#define _ABLE_CLIB_ERR_H 1 |
void _err | ( | int | , | |
const char * | , | |||
... | ||||
) |
void _errx | ( | int | , | |
const char * | , | |||
... | ||||
) |
void _verr | ( | int | , | |
const char * | , | |||
va_list | ap | |||
) |
void _verrx | ( | int | , | |
const char * | , | |||
va_list | ap | |||
) |
void _vwarn | ( | const char * | , | |
va_list | ap | |||
) |
void _vwarnx | ( | const char * | , | |
va_list | ap | |||
) |
void _warn | ( | const char * | , | |
... | ||||
) |
void _warnx | ( | const char * | , | |
... | ||||
) |
void err | ( | int | eval, | |
const char * | fmt, | |||
... | ||||
) |
Display a formatted error message on stderr and exit.
Write a formatted error message to the standard error stream. The format is the program name, the strerror of the current errno and the formatted output of fmt terminated with a newline.
eval | The code passed to exit. | |
fmt | The format of the error message or NULL for none. |
void errx | ( | int | , | |
const char * | , | |||
... | ||||
) |
Display a formatted error message on stderr and exit.
Write a formatted error message to the standard error stream. The format is the program name and the formatted output of fmt terminated with a newline.
eval | The code passed to exit. | |
fmt | The format of the error message or NULL for no message. |
void verr | ( | int | eval, | |
const char * | fmt, | |||
va_list | ap | |||
) |
Display a formatted error message on stderr and exit.
Write a formatted error message to the standard error stream. The format is the program name, the strerror of the current errno and the formatted output of fmt terminated with a newline.
eval | The code passed to exit. | |
fmt | The format of the error message or NULL for none. | |
ap | The varadic argument list. |
void verrx | ( | int | , | |
const char * | , | |||
va_list | ap | |||
) |
Display a formatted error message on stderr and exit.
Write a formatted error message to the standard error stream. The format is the program name and the formatted output of fmt terminated with a newline.
eval | The code passed to exit. | |
fmt | The format of the error message or NULL for no message. | |
ap | The varadic argument list. |
void vwarn | ( | const char * | fmt, | |
va_list | ap | |||
) |
Display a formatted error message on stderr.
Write a formatted error message to the standard error stream. The format is the program name, the strerror of the current errno and the formatted output of fmt terminated with a newline.
fmt | The format of the error message or NULL for none. | |
ap | The varadic argument list for the fmt. |
void vwarnx | ( | const char * | fmt, | |
va_list | ap | |||
) |
Display a formatted error message on stderr.
Write a formatted error message to the standard error stream. The format is the program name and the formatted output of fmt terminated with a newline.
fmt | The format of the error message or NULL for none. | |
ap | The varadic argument list for the fmt. |
void warn | ( | const char * | fmt, | |
... | ||||
) |
Display a formatted error message on stderr.
Write a formatted error message to the standard error stream. The format is the program name, the strerror of the current errno and the formatted output of fmt terminated with a newline.
fmt | The format of the error message or NULL for none. |
void warnx | ( | const char * | fmt, | |
... | ||||
) |
Display a formatted error message on stderr.
Write a formatted error message to the standard error stream. The format is the program name and the formatted output of fmt terminated with a newline.
fmt | The format of the error message or NULL for none. |