list_remove_head

Removes list head.

void* list_remove_head(
    struct list_descriptor *const list
)

This function removes the list head and sets the next element after the list head as a new list head.

Parameters

list

Type: struct list_descriptor Struct *const

The pointer to a list

Returns

Type: void *

The pointer to the new list head of NULL if the list head is NULL