6 buffer_str(
void *user_data,
const char *data,
unsigned int len)
8 memcpy(*(
char**)user_data, data, len);
9 (*(
char**)user_data) += len;
14 sprintf(
char *str,
const char *format, ...)
16 StrFormatContext ctxt;
20 ctxt.write_str = buffer_str;
21 ctxt.user_data = &str;
22 res = format_str_v(&ctxt, format, ap);