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
)
30 /*****************************************************************************
45 Format a list of arguments and put them into the string str.
46 The function makes sure that no more than n characters (including
47 the terminal 0 byte) are written into str.
50 str - The formatted result is stored here
52 format - A printf() format string.
53 args - A list of arguments for the format string.
56 The number of characters written or -1 if the string was too small.
57 In this case, the string is not 0-terminated.
60 No check is beeing made that str is large enough to contain
68 printf(), sprintf(), fprintf(), vprintf(), vfprintf(), snprintf(),
73 ******************************************************************************/
81 rc
= __vcformat (&data
, (void *)_vsnprintf_uc
, format
, args
);