ListFirst
- Macro
- October 8, 2025
Table of Contents
ListFirst
ListFirst
Description
Value at first node in list This is a more expensive call. Fetches pointer to data twice and then dereferences. Better use ListPtrAt instead.
Success
Data in head node in list.
Failure
Emtpy object.
Usage example (Cross-references)
- In
ListInt.c:101
:
case LIST_INT_FIRST : {
if (list->length > 0) {
volatile i32 first = ListFirst(list);
(void)first;
}