Ideas:
- Should be null-terminated (i.e.
count is always at least 1, and length is count-1).
- Should have functions similar to standard ones from
string.h, but with taking length into account.
- Full name is "dynstring" and shortened is "dstr".
typedef gvec_dstr_t dstr_t
Consider using another repository for this.
- Use
GVEC_MODULAR_APPROACH.
- Preserve compatibility with C89.
- Alias gvec functions with
dstr_* prefix using defines (nb: this will not break function pointer obtainment).
tl;dr: steal everything from sds
Ideas:
countis always at least 1, andlengthiscount-1).string.h, but with taking length into account.typedef gvec_dstr_t dstr_tConsider using another repository for this.GVEC_MODULAR_APPROACH.dstr_*prefix using defines (nb: this will not break function pointer obtainment).tl;dr: steal everything from sds