(C) 1998 AROS - The Amiga Research OS


NAME
#include <stdio.h>
#include <stdarg.h>

int vsnprintf ()

SYNOPSIS
char * str
size_t n
const char * format
va_list args

FUNCTION
Format a list of arguments and put them into the string str. The function makes sure that no more than n characters (including the terminal 0 byte) are written into str.

INPUTS
str
The formatted result is stored here
n
The size of str
format
A printf() format string.
args
A list of arguments for the format string.

RESULT
The number of characters written or -1 if the string was too small. In this case, the string is not 0-terminated.

EXAMPLE

SEE ALSO
printf(), sprintf(), fprintf(), vprintf(), vfprintf(), snprintf(), vsnprintf()

NOTES
No check is beeing made that str is large enough to contain the result.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
08.01.1997 ldp
Removed/Changed cases of multiple include files
11.12.1996 aros
Ooops... removed debug code :-)
11.12.1996 aros
New functions: sprintf(), vsprintf(), snprintf() vsnprintf()

vfprintf() now uses __vcformat()