diff options
| author | wrmr | 2024-11-08 17:05:41 -0500 |
|---|---|---|
| committer | wrmr | 2024-11-08 17:05:41 -0500 |
| commit | 25cde1651b86455707051a842ed66a6df59a006b (patch) | |
| tree | e1241f3f813ba9c0fff7ad099f8fe1d986081b00 /strv.h | |
| parent | b977942932bf1cd625f8d7a6f310b0d3a537f72e (diff) | |
rename struct str_slice -> strv_t (string view), use memchr
Diffstat (limited to 'strv.h')
| -rw-r--r-- | strv.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |
