2 * "THE BEER-WARE LICENSE" (Revision 42):
3 * <tobias.rehbein@web.de> wrote this file. As long as you retain this notice
4 * you can do whatever you want with this stuff. If we meet some day, and you
5 * think this stuff is worth it, you can buy me a beer in return.
15 create_element(void *payload
)
17 assert(payload
!= NULL
);
19 struct element
*new = malloc(sizeof(*new));
21 new->payload
= payload
;
29 destroy_element(struct element
*element
)
31 assert(element
!=NULL
);
33 struct element
*next
= element
->next
;
41 prepend_element(struct element
*new, struct element
*list
)