outbuf_printf -- formatted output to an outbuf object
#include <afblib/outbuf_printf.h>
int outbuf_printf(outbuf* obuf, const char* restrict format, ...);
The function outbuf_printf works similar to fprintf but prints to an outbuf instead of a FILE object.
outbuf_printf returns the number of bytes written. In case of errors, -1 is returned.
Andreas F. Borchert