diff options
Diffstat (limited to 'strlist.h')
-rw-r--r-- | strlist.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/strlist.h b/strlist.h new file mode 100644 index 0000000..6c60a79 --- /dev/null +++ b/strlist.h @@ -0,0 +1,16 @@ +#ifndef VULKAN_STRLIST_H +#define VULKAN_STRLIST_H + +struct strlist { + const char **list; + int count; +}; + +void sl_append(struct strlist *sl, const char **strs, int nstrs); +static inline void sl_append1(struct strlist *sl, const char *str) +{ + sl_append(sl, &str, 1); +} +void sl_free(struct strlist *sl); + +#endif // VULKAN_STRLIST_H |