From b1ada414e265a429fcd538efdd26efb8c9c6b697 Mon Sep 17 00:00:00 2001 From: wrmr Date: Sun, 10 Nov 2024 16:10:49 -0500 Subject: use _Generic for strv() --- str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'str.c') diff --git a/str.c b/str.c index 8d1806e..8e60ed7 100644 --- a/str.c +++ b/str.c @@ -45,7 +45,7 @@ void str_free(str_t *b) { /* string views */ -strv_t strv(const char *s) { +strv_t strv_cstr(const char *s) { return (strv_t) { s, strlen(s) }; } -- cgit 1.4.1-2-gfad0