diff options
Diffstat (limited to 'list.c')
-rw-r--r-- | list.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -74,7 +74,7 @@ int add_to_list(list_ptr lp, void *item) /** ------------------------------------------------------------------------ - Creates a new list and sets its pointers to NULL. + Creates a new list and sets its pointers to NULL. Returns a pointer to the new list. -------------------------------------------------------------------- **/ list_ptr new_list (void) @@ -161,7 +161,7 @@ void *delete_from_list(list_ptr lp, void *item) /** ------------------------------------------------------------------------ Deletes each node in the list *except the head*. This allows the deletion of lists where the head is not malloced or created - with new_list(). If free_items is true, each item pointed to + with new_list(). If free_items is true, each item pointed to from the node is freed, in addition to the node itself. -------------------------------------------------------------------- **/ void delete_list(list_ptr lp, int free_items) |