From 364eea8654a69dd0e79cdfa86c10992e6e275ccd Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 28 Feb 2018 00:35:15 +0000 Subject: init commit --- strlist.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 strlist.h (limited to 'strlist.h') 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 -- cgit v1.2.3