string_list.h

changeset 19
8bac9fd0629d
parent 17
5f43f733cc12
child 20
43725438ac50
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/string_list.h	Sun Oct 16 12:20:52 2011 +0200
@@ -0,0 +1,30 @@
+/*
+ * string_list.h
+ *
+ *  Created on: 15.09.2011
+ *      Author: beckermi
+ */
+
+#ifndef STRING_LIST_H_
+#define STRING_LIST_H_
+
+#include "stdinc.h"
+
+typedef struct _string_list {
+  int count;
+  char** items;
+} string_list_t;
+
+#ifdef _cplusplus
+extern "C" {
+#endif
+
+string_list_t* new_string_list_t();
+void destroy_string_list_t(string_list_t*);
+void add_string(string_list_t*, char*);
+
+#ifdef _cplusplus
+}
+#endif
+
+#endif /* STRING_LIST_H_ */

mercurial