src/lib/ppc405lib/sprintf.c
// We use a StringStream to implement [v]sprintf() and [v]snprintf().  Once
// the formatting is finished the NULL terminator is added. 
We use a StringStream to implement [v]sprintf() and [v]snprintf().  Once
the formatting is finished the NULL terminator is added.
We use a StringStream to implement [ v ] sprintf () and [ v ] snprintf () . Once the formatting is finished the NULL terminator is added .
int
vsprintf(char *str, const char *format, va_list argp)
{
    ssize_t rc;
    StringStream stream;
    _string_stream_create(&stream, str, 1, 0, sprintf_swrite);
    rc = vfprintf((FILE *)(&stream), format, argp);
    stream.data[stream.next_write] = 0;
    return rc;
}
int vsprintf ( char * str , const char * format , va_list argp ) { ssize_t rc ; StringStream stream ; _string_stream_create ( & stream , str , 1 , 0 , sprintf_swrite ) ; rc = vfprintf ( ( FILE * ) ( & stream ) , format , argp ) ; stream . data [ stream . next_write ] = 0 ; return rc ; }
We use a StringStream to implement [v]sprintf() and [v]snprintf().
We use a StringStream to implement [ v ] sprintf () and [ v ] snprintf () .