list_insert_as_head

Insert an element as list head.

void list_insert_as_head(
    struct list_descriptor *const list,
    void *const element
)

Parameters

list

Type: struct list_descriptor Struct *const

The pointer to a list element

element

Type: void *const

An element to insert to the given list

Returns

Type: void