xprintf.h revision 1.1 1 1.1 itohy /*
2 1.1 itohy * declarations of tiny printf/err functions
3 1.1 itohy *
4 1.1 itohy * written by Yasha (ITOH Yasufumi)
5 1.1 itohy * public domain
6 1.1 itohy *
7 1.1 itohy * $NetBSD: xprintf.h,v 1.1 1998/09/01 19:51:57 itohy Exp $
8 1.1 itohy */
9 1.1 itohy
10 1.1 itohy #include <sys/cdefs.h>
11 1.1 itohy #ifdef __STDC__
12 1.1 itohy #include <stdarg.h>
13 1.1 itohy #endif
14 1.1 itohy
15 1.1 itohy size_t xvsnprintf __P((char *buf, size_t len, const char *fmt, va_list ap));
16 1.1 itohy size_t xsnprintf __P((char *buf, size_t len, const char *fmt, ...));
17 1.1 itohy size_t xvfdprintf __P((int fd, const char *fmt, va_list ap));
18 1.1 itohy size_t xprintf __P((const char *fmt, ...));
19 1.1 itohy size_t xerrprintf __P((const char *fmt, ...));
20 1.1 itohy __dead void xerr __P((int eval, const char *fmt, ...))
21 1.1 itohy __attribute__((noreturn));
22 1.1 itohy __dead void xerrx __P((int eval, const char *fmt, ...))
23 1.1 itohy __attribute__((noreturn));
24 1.1 itohy void xwarn __P((const char *fmt, ...));
25 1.1 itohy void xwarnx __P((const char *fmt, ...));
26