summaryrefslogtreecommitdiffstats
path: root/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'list.c')
-rw-r--r--list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/list.c b/list.c
index 66b9d8a..29ddcf1 100644
--- a/list.c
+++ b/list.c
@@ -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;