diff options
Diffstat (limited to 'list.h')
-rw-r--r-- | list.h | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -18,11 +18,24 @@ void movetohead(struct item **mainlist, struct item *item); struct item *additem(struct item **mainlist); /* - * + * Delete item from list mainlist. */ void delitem(struct item **mainlist, struct item *item); /* - * + * Free any data in current item and then delete item. Optionally + * update number of items in list if stored != NULL. + */ +void freeitem(struct item **list, int *stored, + struct item *item); + +/* + * Delete all items in list. Optionally update number of items in list + * if stored != NULL. + */ +void delallitems(struct item **list, int *stored); + +/* + * Print all items in mainlist on stdout. */ void listitems(struct item *mainlist); |