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