aboutsummaryrefslogtreecommitdiff
path: root/linkedlist/stack.h
blob: d579da9b9a1cbf4077672d6e8c75aca4adfca5fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);