src/lib/ppc405lib/sprintf.c
// sprintf() is easy - just blindly copy in the data.
sprintf() is easy - just blindly copy in the data.
sprintf () is easy - just blindly copy in the data .
static int
sprintf_swrite(FILE *stream, const void *buf, size_t size, size_t *written)
{
    StringStream *string = (StringStream *)stream;
    memcpy((void *)(&(string->data[string->next_write])), buf, size);
    string->next_write += size;
    *written = size;
    return 0;
}
static int sprintf_swrite ( FILE * stream , const void * buf , size_t size , size_t * written ) { StringStream * string = ( StringStream * ) stream ; memcpy ( ( void * ) ( & ( string -> data [ string -> next_write ] ) ) , buf , size ) ; string -> next_write += size ; * written = size ; return 0 ; }
sprintf() is easy - just blindly copy in the data.
sprintf () is easy - just blindly copy in the data .