Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kList_Insert | ( | kList | list,
|  | kListItem | before,
|  | const void * | itemContent,
|  | kListItem * | item
| ) |  |

Inserts an item into the list before the specified list item.

Increases list capacity, if necessary.

Parameters

  list | List object.
  before | Item will be inserted before this list node (if null, inserts at tail).
  itemContent | Optional pointer to item content that will be copied (by value) into the list.
  item | Optionally receives pointer to newly-inserted item.

Returns
  Operation status.