2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 C function vsnprintf().
7 /* Original source from libnix */
17 static int _vsnprintf_uc (int c
, struct data
* data
)
28 /*****************************************************************************
43 Format a list of arguments and put them into the string str.
44 The function makes sure that no more than n characters (including
45 the terminal 0 byte) are written into str.
48 str - The formatted result is stored here
50 format - A printf() format string.
51 args - A list of arguments for the format string.
54 The number of characters written into the string. The 0 byte at the
55 end is not included. If this is greater than or equal to n then
56 there was not enough room to write all characters. In this case the
57 output string is not null-terminated, and the return value is the
58 number of characters which would have been written if enough space had
68 printf(), sprintf(), fprintf(), vprintf(), vfprintf(), snprintf(),
73 ******************************************************************************/
81 rc
= __vcformat (&data
, (void *)_vsnprintf_uc
, format
, args
);