summary refs log tree commit diff
path: root/strv.h
diff options
context:
space:
mode:
Diffstat (limited to 'strv.h')
-rw-r--r--strv.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/strv.h b/strv.h
new file mode 100644
index 0000000..553a39c
--- /dev/null
+++ b/strv.h
@@ -0,0 +1,13 @@
+#ifndef STRV_H
+#define STRV_H
+
+#include <stddef.h>
+
+typedef struct {
+	const char *s;
+	size_t n;
+} strv_t;
+
+strv_t strv_head(strv_t ss, int chr, size_t *i);
+
+#endif