]>
Commit | Line | Data |
---|---|---|
d1b2a10e | 1 | /* |
2 | * Header file for common error description library. | |
3 | * | |
4 | * Copyright 1988, Student Information Processing Board of the | |
5 | * Massachusetts Institute of Technology. | |
6 | * | |
7 | * For copyright and distribution info, see the documentation supplied | |
8 | * with this package. | |
9 | */ | |
10 | ||
a91a6d50 | 11 | #ifndef COM_ERR__H |
12 | #define COM_ERR__H | |
d1b2a10e | 13 | |
d1b2a10e | 14 | #include <stdarg.h> |
d1b2a10e | 15 | |
a91a6d50 | 16 | typedef void (*com_err_handler_t)(const char *, long, const char *, va_list); |
17 | ||
18 | void com_err(const char *progname, long code, const char *fmt, ...); | |
19 | void com_err_va(const char *progname, long code, const char *fmt, | |
20 | va_list args); | |
21 | char const *error_message(long code); | |
22 | com_err_handler_t set_com_err_hook(com_err_handler_t handler); | |
23 | com_err_handler_t reset_com_err_hook(void); | |
24 | ||
25 | #endif |