diff options
| author | anon | 2025-07-02 21:55:56 +0200 |
|---|---|---|
| committer | anon | 2025-07-02 21:55:56 +0200 |
| commit | 3626c6381d1ee799c77789ee64b905ff455a3fb5 (patch) | |
| tree | 9f688d85bbfd5b876367a06d8bb5201e043c9723 /chad | |
| parent | 4c6080273291404294b5da1fd1ae0a538ecfa494 (diff) | |
| download | libchad-3626c6381d1ee799c77789ee64b905ff455a3fb5.tar.xz libchad-3626c6381d1ee799c77789ee64b905ff455a3fb5.tar.zst | |
bump
Diffstat (limited to 'chad')
| -rw-r--r-- | chad/experimental/strlist.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 |
