(C) 1998 AROS - The Amiga Research OS


NAME
#include <stdio.h>

int snprintf ()

SYNOPSIS
char * str
size_t n
const char * format
...

FUNCTION
Formats a list of arguments and writes them into the string str.

INPUTS
str
The formatted string is written into this variable. You must make sure that it is large enough to contain the result.
n
At most n characters are written into the string. This includes the final 0.
format
Format string as described above ... - Arguments for the format string

RESULT
The number of characters written into the string. If this is -1, then there was not enough room. The 0 byte at the end is not included.

EXAMPLE

SEE ALSO
fprintf(), vprintf(), vfprintf(), snprintf(), vsprintf(), vnsprintf()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
11.12.1996 aros
New functions: sprintf(), vsprintf(), snprintf() vsnprintf()

vfprintf() now uses __vcformat()