repo.or.cz
/
omfsprogs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add dump program to the repo
[omfsprogs.git]
/
stack.h
blob
9dc5b8e8f1409fef364b9c5138b582f1d33e87a6
1
#ifndef _STACK_H
2
#define _STACK_H
3
4
struct
stack_node
5
{
6
void
*
data
;
7
struct
stack_node
*
next
;
8
};
9
10
typedef
struct
stack_node stack_t
;
11
12
stack_t
*
stack_init
();
13
int
stack_empty
(
stack_t
*);
14
int
stack_push
(
stack_t
*,
void
*);
15
void
*
stack_pop
(
stack_t
*);
16
void
stack_destroy
(
stack_t
*);
17
18
#endif