nmsg_res nmsg_strbuf_append(struct nmsg_strbuf *sb, const char *fmt,...)
Append formatted string to a string buffer.
void nmsg_strbuf_destroy(struct nmsg_strbuf **sb)
Destroy all resources associated with a string buffer.
size_t nmsg_strbuf_len(struct nmsg_strbuf *sb)
Find the length of the used portion of the string buffer.
struct nmsg_strbuf * nmsg_strbuf_init(void)
Initialize a string buffer.
nmsg_res nmsg_strbuf_append_str_json(struct nmsg_strbuf *sb, const char *str, size_t len)
Append to a string buffer.
nmsg_res nmsg_strbuf_reset(struct nmsg_strbuf *sb)
Reset a string buffer.
nmsg_res nmsg_strbuf_append_str(struct nmsg_strbuf *sb, const char *str, size_t len)
Append to a string buffer.
char * data
buffer for string data
size_t bufsz
size of data allocation