#ifndef BL_STRING_H #define BL_STRING_H #include #include typedef struct { char *str; size_t alloc,len; } String; String *string_new(const char *init); char *string_free(String *string,boolean free_segment); void string_append_c(String *string,char c); void string_append_len(String *string,const char *s,ssize_t len); #define string_append(string,s) string_append_len(string,s,-1) #endif /* BL_STRING_H */