xprintf.h revision 1.1.168.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.168.1 jym * $NetBSD: xprintf.h,v 1.1.168.1 2009/05/13 17:18:43 jym 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.168.1 jym size_t xvsnprintf(char *buf, size_t len, const char *fmt, va_list ap);
16 1.1.168.1 jym size_t xsnprintf(char *buf, size_t len, const char *fmt, ...);
17 1.1.168.1 jym size_t xvfdprintf(int fd, const char *fmt, va_list ap);
18 1.1.168.1 jym size_t xprintf(const char *fmt, ...);
19 1.1.168.1 jym size_t xerrprintf(const char *fmt, ...);
20 1.1.168.1 jym __dead void xerr(int eval, const char *fmt, ...)
21 1.1 itohy __attribute__((noreturn));
22 1.1.168.1 jym __dead void xerrx(int eval, const char *fmt, ...)
23 1.1 itohy __attribute__((noreturn));
24 1.1.168.1 jym void xwarn(const char *fmt, ...);
25 1.1.168.1 jym void xwarnx(const char *fmt, ...);
26