summaryrefslogtreecommitdiffstats
path: root/server/.svn/text-base/array.h.svn-base
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:52:55 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:52:55 -0400
commit6ba98a9f9f48e13738d9736cba9c45b5e94f42f2 (patch)
tree86d7c281bcdbf67eb53cee064aa905e740ec5ccf /server/.svn/text-base/array.h.svn-base
downloadnastd-6ba98a9f9f48e13738d9736cba9c45b5e94f42f2.tar.gz
nastd-6ba98a9f9f48e13738d9736cba9c45b5e94f42f2.zip
Initial import
Diffstat (limited to 'server/.svn/text-base/array.h.svn-base')
-rw-r--r--server/.svn/text-base/array.h.svn-base31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/.svn/text-base/array.h.svn-base b/server/.svn/text-base/array.h.svn-base
new file mode 100644
index 0000000..83b4ee1
--- /dev/null
+++ b/server/.svn/text-base/array.h.svn-base
@@ -0,0 +1,31 @@
+/* $Id: array.h,v 1.4 2000/10/17 23:38:27 shmit Exp $ */
+
+#ifndef ARRAY_H
+#define ARRAY_H
+
+#include <stdarg.h>
+
+#define ARRTERM -1
+
+struct _string_t {
+ char *str;
+ int strlen;
+};
+typedef struct _string_t string_t;
+
+struct _array_t {
+ int nitems;
+ string_t **items;
+};
+typedef struct _array_t array_t;
+
+string_t *string_new(int slen, char *strdata);
+void string_delete(string_t *string);
+
+array_t *array_new();
+void array_delete(array_t *array);
+int va_array_add(array_t *aa, va_list ap);
+int array_add(array_t *aa, ...);
+int array_dup(array_t *dst, array_t *src);
+
+#endif