begin list api
[my-code/api.git] / list / list.h
diff --git a/list/list.h b/list/list.h
new file mode 100644 (file)
index 0000000..c500c1a
--- /dev/null
@@ -0,0 +1,17 @@
+/* list.h -- list headers */
+
+#include <stdio.h>
+
+
+#define SINGLE 'S'
+#define DOUBLE 'D'
+
+typedef struct s_list_element {
+       struct s_list_element *next;
+       void *data;
+       int number;
+} t_list_element;
+
+typedef struct s_list {
+       t_list_element start;
+} t_list;