summaryrefslogtreecommitdiffstats
path: root/strstorage.h
blob: c1837ac21c5f61c85e1c77104c59055f21624567 (plain) (blame)
1
2
3
4
5
6
/* provide a string allocator.  It is add-only, you can't free a string
 * later.  On the plus side, the allocation overhead is close to zero.
 * Will return a pointer to the stored copy of the string. */

const char* strstorage_add(const char* s,size_t n);