VIPRINTF(3)

NAME
4.72 `viprintf', `vfiprintf', `vsiprintf', `vsniprintf', `vasiprintf', `vasniprintf'--format argument list (integer only)

SYNOPSIS
     #include <stdio.h>
     #include <stdarg.h>
     int viprintf(const char *FMT, va_list LIST);
     int vfiprintf(FILE *FP, const char *FMT, va_list LIST);
     int vsiprintf(char *STR, const char *FMT, va_list LIST);
     int vsniprintf(char *STR, size_t SIZE, const char *FMT,
         va_list LIST);
     int vasiprintf(char **STRP, const char *FMT, va_list LIST);
     char *vasniprintf(char *STR, size_t *SIZE, const char *FMT,
         va_list LIST);
     int _viprintf_r(struct _reent *REENT, const char *FMT,
         va_list LIST);
     int _vfiprintf_r(struct _reent *REENT, FILE *FP,
         const char *FMT, va_list LIST);
     int _vsiprintf_r(struct _reent *REENT, char *STR,
         const char *FMT, va_list LIST);
     int _vsniprintf_r(struct _reent *REENT, char *STR,
         size_t SIZE, const char *FMT, va_list LIST);
     int _vasiprintf_r(struct _reent *REENT, char **STR,
         const char *FMT, va_list LIST);
     char *_vasniprintf_r(struct _reent *REENT, char *STR,
         size_t *SIZE, const char *FMT, va_list LIST);

DESCRIPTION
`viprintf', `vfiprintf', `vasiprintf', `vsiprintf', `vsniprintf', and `vasniprintf' are (respectively) variants of `iprintf', `fiprintf', `asiprintf', `siprintf', `sniprintf', and `asniprintf'. They differ only in allowing their caller to pass the variable argument list as a `va_list' object (initialized by `va_start') rather than directly accepting a variable number of arguments. The caller is responsible for calling `va_end'.
   `_viprintf_r', `_vfiprintf_r', `_vasiprintf_r', `_vsiprintf_r', `_vsniprintf_r', and `_vasniprintf_r' are reentrant versions of the above.

RETURNS
The return values are consistent with the corresponding functions:

PORTABILITY
All of these functions are newlib extensions.
   Supporting OS subroutines required: `close', `fstat', `isatty', `lseek', `read', `sbrk', `write'.

SEE ALSO
viprintf is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.