diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2011-05-31 15:51:05 +0200 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2011-05-31 15:51:05 +0200 |
commit | d9bfb55bb6c888ae5e527f29345db5f47721daa7 (patch) | |
tree | ec20b99f504dd05a1a431688ee3c4451b21111b4 | |
parent | 36266228bb53550305e5fa3f43c03220a75f16cd (diff) | |
download | mcwm-d9bfb55bb6c888ae5e527f29345db5f47721daa7.zip |
Added functions.
-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); |