aboutsummaryrefslogtreecommitdiff
path: root/include/string_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/string_view.h')
-rw-r--r--include/string_view.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/string_view.h b/include/string_view.h
new file mode 100644
index 0000000..1209c1a
--- /dev/null
+++ b/include/string_view.h
@@ -0,0 +1,11 @@
+#ifndef TSL_STRING_VIEW_H
+#define TSL_STRING_VIEW_H
+
+#include <stddef.h>
+
+typedef struct {
+ char *data;
+ size_t size;
+} TslStringView;
+
+#endif /* TSL_STRING_VIEW_H */