Home | History | Annotate | Line # | Download | only in common
xprintf.h revision 1.2.6.1
      1      1.1   itohy /*
      2      1.1   itohy  *	declarations of tiny printf/err functions
      3      1.1   itohy  *
      4  1.2.6.1  jruoho  *	written by ITOH Yasufumi
      5      1.1   itohy  *	public domain
      6      1.1   itohy  *
      7  1.2.6.1  jruoho  *	$NetBSD: xprintf.h,v 1.2.6.1 2011/06/06 09:07:03 jruoho 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.2     dsl size_t xvsnprintf(char *buf, size_t len, const char *fmt, va_list ap);
     16      1.2     dsl size_t xsnprintf(char *buf, size_t len, const char *fmt, ...);
     17      1.2     dsl size_t xvfdprintf(int fd, const char *fmt, va_list ap);
     18      1.2     dsl size_t xprintf(const char *fmt, ...);
     19      1.2     dsl size_t xerrprintf(const char *fmt, ...);
     20      1.2     dsl __dead void xerr(int eval, const char *fmt, ...)
     21      1.1   itohy 				__attribute__((noreturn));
     22      1.2     dsl __dead void xerrx(int eval, const char *fmt, ...)
     23      1.1   itohy 				__attribute__((noreturn));
     24      1.2     dsl void xwarn(const char *fmt, ...);
     25      1.2     dsl void xwarnx(const char *fmt, ...);
     26