aboutsummaryrefslogtreecommitdiff
path: root/linkedlist/stack.h
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-04-12 05:18:19 +0200
committerGravatar jonas <himself@jonasgunz.de> 2019-04-12 05:18:19 +0200
commit329714471c36facbbc68cfa26ebaa51938377c7e (patch)
tree9ae9ce4d28450098216b2aa0df930b45dc2f3d7b /linkedlist/stack.h
downloadstandardstuff-329714471c36facbbc68cfa26ebaa51938377c7e.tar.gz
initialÃ
Diffstat (limited to 'linkedlist/stack.h')
-rw-r--r--linkedlist/stack.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/linkedlist/stack.h b/linkedlist/stack.h
new file mode 100644
index 0000000..d579da9
--- /dev/null
+++ b/linkedlist/stack.h
@@ -0,0 +1,18 @@
+//stack.h
+//
+
+#include <stdlib.h>
+
+struct stack
+{
+ struct stack* next;
+ void* data;
+};
+
+void stack_add(void* _data, struct stack** _stackpointer);
+
+void* stack_get(struct stack** _stackpointer);
+
+void stack_init(struct stack** _stackpointer);
+
+void stack_flush(struct stack** _stackpointer);