Mercurial > hg > octave-nkf > gnulib-hg
diff lib/xprintf.h @ 9398:9d8f7facb7a6
Also wrap vf?printf.
* lib/xprintf.h (xvprintf, xvfprintf): New declarations.
* lib/xprintf.c (xprintf, xfprintf): Work for C89.
(xvprintf, xvfprintf): New functions.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 22 Oct 2007 14:09:16 -0600 (2007-10-22) |
parents | 559ef0e161fe |
children | c4fa39bf5223 |
line wrap: on
line diff
--- a/lib/xprintf.h +++ b/lib/xprintf.h @@ -17,6 +17,7 @@ #ifndef _XPRINTF_H #define _XPRINTF_H +#include <stdarg.h> #include <stdio.h> #ifndef __attribute__ @@ -34,7 +35,12 @@ extern int xprintf (char const *restrict format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); +extern int xvprintf (char const *restrict format, va_list args) + __attribute__ ((__format__ (__printf__, 1, 0))); extern int xfprintf (FILE *restrict stream, char const *restrict format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); +extern int xvfprintf (FILE *restrict stream, char const *restrict format, + va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))); #endif