sbuf_drain_core_output
sbuf_set_drain(sb, sbuf_drain_core_output, p);
int sbuf_drain_core_output(void *, const char *, int);