summaryrefslogtreecommitdiffstats
path: root/strstorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'strstorage.h')
-rw-r--r--strstorage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/strstorage.h b/strstorage.h
new file mode 100644
index 0000000..c1837ac
--- /dev/null
+++ b/strstorage.h
@@ -0,0 +1,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);
+