repo.or.cz
/
cantaveria.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'list' into audio
[cantaveria.git]
/
list.h
blob
d00556e87a14d58c66b661e7eda52f00d270cb2f
1
typedef
struct
list list
;
2
struct
list
{
3
void
*
item
;
4
list
*
next
;
5
};
6
7
list
*
empty
();
8
void
push
(
list
*
L
,
void
*
item
);
9
void
*
pop
(
list
*
L
);
10
void
append
(
list
*
L
,
void
*
item
);
11
void
recycle
(
list
*
L
);
12
void
print_list
(
list
*
L
,
void
(*
print
)(
void
*
item
));
13
int
length
(
list
*
L
);