Hello so I am learning linked lists and I have to write several functions by using a sentinel. I have this definition: A sentinel is a fake element that is the first element of the list. An empty list is then a single sentinel and not a NULL pointer.
I need initialise the sentinel of an empty list
void list_init(struct list *list);
and check if the list is empty (return true is empty)
int list_is_empty(struct list *list);
but I am completely lost, could you help me out, thanks!