blob: 9f5cb6b9e9fad0ff255f2dd1b505cfcec4658d26 [file] [log] [blame]
Rich Felker39e48532011-04-05 11:16:49 -04001#ifndef _ERR_H
2#define _ERR_H
3
Rich Felker695a04f2012-09-08 18:16:33 -04004#include <features.h>
Rich Felker39e48532011-04-05 11:16:49 -04005#include <stdarg.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11void warn(const char *, ...);
12void vwarn(const char *, va_list);
13void warnx(const char *, ...);
14void vwarnx(const char *, va_list);
15
Rich Felker0c05bd32012-09-06 23:34:10 -040016_Noreturn void err(int, const char *, ...);
17_Noreturn void verr(int, const char *, va_list);
18_Noreturn void errx(int, const char *, ...);
19_Noreturn void verrx(int, const char *, va_list);
Rich Felker39e48532011-04-05 11:16:49 -040020
21#ifdef __cplusplus
22}
23#endif
24
25#endif