__kstring_t

kstring_t is a simple non-opaque type whose fields are likely to be * used directly by user code (but see also ks_str() and ks_len() below). * A kstring_t object is initialised by either of * kstring_t str = { 0, 0, NULL }; * kstring_t str; ...; str.l = str.m = 0; str.s = NULL; * (NB: in Dlang it is automagically initialized to zeros unless declared = void) * and either ownership of the underlying buffer should be given away before * the object disappears (see ks_release() below) or the kstring_t should be * destroyed with free(str.s);

extern (C)
struct __kstring_t {}

Members

Variables

l
size_t l;
m
size_t m;

length(l) of max(m)

s
char* s;

pointer to string -- must free(str.s) when done with it

Meta