ListNodeAt

Table of Contents

ListNodeAt

Description

Node at given index in list

Parameters

NameDirectionDescription
linList to get node from
idxinIndex to fetch node at.

Success

Node in given list at given index.

Failure

Empty node struct.

Usage example (Cross-references)

    /// FAILURE: Empty node struct.
    ///
    #define ListNodeFirst(l) ListNodeAt((l), 0)
    
    ///
    /// FAILURE: Empty node struct.
    ///
    #define ListNodeLast(l) ListNodeAt((l), (l)->length - 1)
    
    ///

Share :