]> git.datanom.net - clib.git/blame - src/stack.h
init
[clib.git] / src / stack.h
CommitLineData
392d65ba
MR
1#ifndef _STACK_H_
2#define _STACK_H_
3
4#include <stdbool.h>
5
6typedef struct _Stack Stack;
7typedef void (*StackFreeFunc)(void*);
8
9Stack* stack_new();
10Stack* stack_new_full(StackFreeFunc free);
11void stack_destroy(Stack*);
12void* stack_pop(Stack*);
13void stack_push(Stack*, void*);
14void* stack_peek(Stack*);
15bool stack_empty(Stack*);
16void stack_clear(Stack*);
17int stack_size(Stack*);
18
19#endif
This page took 0.029185 seconds and 5 git commands to generate.