3 ms·
See also "elastic arrays": https://github.com/Tarsnap/libcperciva/blob/master/datastruct/elasticarray.c https://github.com/Tarsnap/libcperciva/blob/master/data
by cperciva 6y ago
See also "elastic arrays":
https://github.com/Tarsnap/libcperciva/blob/master/datastruct/elasticarray.c https://github.com/Tarsnap/libcperciva/blob/master/datastruc...
https://github.com/Tarsnap/libcperciva/blob/master/datastruct/elasticarray.h https://github.com/Tarsnap/libcperciva/blob/master/datastruc...
ELASTICARRAY_DECL(STR, str, char);
creates a type "STR" and the functions str_init, str_resize, str_getsize, str_append, str_shrink, str_truncate, str_get, str_iter, str_free, str_export, and str_exportdup.