From 25cde1651b86455707051a842ed66a6df59a006b Mon Sep 17 00:00:00 2001 From: wrmr Date: Fri, 8 Nov 2024 17:05:41 -0500 Subject: rename struct str_slice -> strv_t (string view), use memchr --- strv.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 strv.h (limited to 'strv.h') 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 + +typedef struct { + const char *s; + size_t n; +} strv_t; + +strv_t strv_head(strv_t ss, int chr, size_t *i); + +#endif -- cgit 1.4.1-2-gfad0