From 4b0b3da65906ae892fa3f46a3482dd36b32c816c Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sat, 18 Dec 2021 13:11:07 +0100 Subject: Add player queuing --- list.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'list.c') diff --git a/list.c b/list.c index 66b9d8a..29ddcf1 100644 --- a/list.c +++ b/list.c @@ -1,6 +1,12 @@ #include "list.h" #include "util.h" +int +list_empty(struct link *head) +{ + return head->next == NULL; +} + int list_len(struct link *head) { -- cgit v1.2.3-71-gd317