2 * vsprintf - print formatted output without ellipsis on an array
12 vsnprintf(char *s
, size_t n
, const char *format
, va_list arg
)
18 tmp_stream
._flags
= _IOWRITE
+ _IONBF
+ _IOWRITING
;
19 tmp_stream
._buf
= (unsigned char *) s
;
20 tmp_stream
._ptr
= (unsigned char *) s
;
21 tmp_stream
._count
= n
-1;
23 retval
= _doprnt(format
, arg
, &tmp_stream
);
24 tmp_stream
._count
= 1;
25 putc('\0',&tmp_stream
);
31 vsprintf(char *s
, const char *format
, va_list arg
)
33 return vsnprintf(s
, INT_MAX
, format
, arg
);