ListNodeAt
- Macro
- October 8, 2025
Table of Contents
ListNodeAt
ListNodeAtDescription
Node at given index in list
Parameters
| Name | Direction | Description |
|---|---|---|
l | in | List to get node from |
idx | in | Index to fetch node at. |
Success
Node in given list at given index.
Failure
Empty node struct.
Usage example (Cross-references)
- In
Access.h:121:
/// FAILURE: Empty node struct.
///
#define ListNodeFirst(l) ListNodeAt((l), 0)
///
- In
Access.h:131:
/// FAILURE: Empty node struct.
///
#define ListNodeLast(l) ListNodeAt((l), (l)->length - 1)
///