When you create a List structure, you must initialize it with a call to InitList() before using it. InitList() creates an empty list by initializing the head (beginning-of-list) and tail (end-of-list) anchors and by providing a name for a list.
Arguments
l
A pointer to the list to be initialized.
name
The name of the list, or NULL to get the default name.