int write_buf(char** buf, size_t * buflen, const char* val); int format_buf(char** buf, size_t* buflen, const char* fmt, ...);