# AddHead

Adds a node to the head of a list.

### Synopsis

`void AddHead( List *l, Node *n )`

### Description

This procedure adds a node to the head (the beginning) of the specified list.

### Arguments

l
  A pointer to the list in which to add the node.

n
  A pointer to the node to add.

### Implementation

Folio call implemented in kernel folio V20.

### Associated Files

list.h
  ANSI C Prototype

clib.lib
  ARM Link Library

### Notes

A node can be included in only one list.

### Caveats

Attempting to insert a node into a list while it is a member of another list is not reported as an error, and may confuse the other list.

### See Also

``AddTail`(), InitList(), InsertNodeFromHead(), InsertNodeFromTail(), RemHead(), RemNode(), RemTail(), UniversalInsertNode()`

#