xprintf.h revision 1.1.162.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.162.1 skrll * $NetBSD: xprintf.h,v 1.1.162.1 2009/04/28 07:34:55 skrll 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.162.1 skrll size_t xvsnprintf(char *buf, size_t len, const char *fmt, va_list ap);
16 1.1.162.1 skrll size_t xsnprintf(char *buf, size_t len, const char *fmt, ...);
17 1.1.162.1 skrll size_t xvfdprintf(int fd, const char *fmt, va_list ap);
18 1.1.162.1 skrll size_t xprintf(const char *fmt, ...);
19 1.1.162.1 skrll size_t xerrprintf(const char *fmt, ...);
20 1.1.162.1 skrll __dead void xerr(int eval, const char *fmt, ...)
21 1.1 itohy __attribute__((noreturn));
22 1.1.162.1 skrll __dead void xerrx(int eval, const char *fmt, ...)
23 1.1 itohy __attribute__((noreturn));
24 1.1.162.1 skrll void xwarn(const char *fmt, ...);
25 1.1.162.1 skrll void xwarnx(const char *fmt, ...);
26