File strb.h

Defines

STRB_STATIC_INIT
strb_new()
strb_append0(s)

Functions

strb *strb_alloc(size_t s)
void strb_free(strb *sb)
static inline void strb_reset(strb *sb)
static inline int strb_seterror(strb *sb)
static inline int strb_error(strb *sb)
static inline void strb_clear(strb *sb)
int strb_grow(strb *sb, size_t s)
static inline int strb_ensure(strb *sb, size_t s)
static inline void strb_appendc(strb *sb, char c)
static inline void strb_appendn(strb *sb, const char *s, size_t n)
static inline void strb_appends(strb *sb, const char *s)
static inline void strb_appendb(strb *sb, const strb *sb2)
void strb_appendf(strb *sb, const char *f, ...)
void strb_read(strb *sb, int fd, size_t sz)
int strb_write(int fd, strb *sb)
static inline char *strb_cstr(strb *sb)
struct strb
#include <strb.h>

Public Members

char *s
size_t l
size_t a