#ifndef STRBUF_H
#define STRBUF_H
#include <ucx/string.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _strbuf {
char *ptr;
size_t length;
size_t size;
} sbuf_t;
sbuf_t* sbuf_new(size_t size);
void sbuf_puts(sbuf_t *buf, char *str);
void sbuf_put(sbuf_t *buf, char chr);
void sbuf_append(sbuf_t *buf, sstr_t str);
void sbuf_free(sbuf_t *buf);
#ifdef __cplusplus
}
#endif
#endif