diff options
Diffstat (limited to 'list.c')
| -rw-r--r-- | list.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,12 @@ #include "util.h" int +list_empty(struct link *head) +{ + return head->next == NULL; +} + +int list_len(struct link *head) { struct link *iter; |
