# InitList

Initializes a list.

### Synopsis

`void InitList( List *l, const char *name )`

### Description

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.

### Implementation

Folio call implemented in kernel folio V20.

### Associated Files

list.h
  ANSI C Prototype

clib.lib
  ARM Link Library

### Caveats

GIGO (garbage in, garbage out)

### See Also

``AddHead`(), AddTail(), InsertNodeFromHead(), InsertNodeFromTail(), IsListEmpty(), RemHead(), RemNode(), RemTail(), UniversalInsertNode()`

#