From 3626c6381d1ee799c77789ee64b905ff455a3fb5 Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 2 Jul 2025 21:55:56 +0200 Subject: bump --- chad/experimental/strlist.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'chad/experimental') diff --git a/chad/experimental/strlist.h b/chad/experimental/strlist.h index f72e356..33d42f7 100644 --- a/chad/experimental/strlist.h +++ b/chad/experimental/strlist.h @@ -1,3 +1,6 @@ +#ifndef STRLIST_H +#define STRLIST_H + /* The string based list is a common pattern, * as it is the most intuitive way to serialize a list. * @@ -32,7 +35,7 @@ char * strlist_component(char * list, size_t n, sep_t sep); char * strlist_components(char * list, size_t from, size_t to, sep_t sep); /* The following are shorthands for component()/components(), - * with a specific numbers which may or may not be lenght specific + * with a specific numbers which may or may not be length specific * * Visual explanation: * this/is/my/example/path @@ -47,7 +50,7 @@ char * strlist_head(char * list, sep_t sep); char * strlist_tail(char * list, sep_t sep); /* Notes: - * + we very contiously made the decision to not take a destination operand; + * + we very consciously made the decision to not take a destination operand; * you would have to allocate it just the same, * copying the source string is not a real performance concern, * but we want our interface to be as clean as possible @@ -58,3 +61,5 @@ char * strlist_tail(char * list, sep_t sep); * char name[] = "this/is/my.file.example"; * name = strlist_head(strlist_base(name, UNIX_PATH_SEP), EXT_SEP); */ + +#endif -- cgit v1.2.3