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
Fixed a bug in list pop, again.
[cantaveria.git]
/
list.h
blob
02dc97750172120eaf0235b0d4ecb20fe4e5a253
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
));