ListPopFront
- Macro
- October 8, 2025
Table of Contents
ListPopFront
ListPopFrontDescription
Remove item from the very beginning of list.
Parameters
| Name | Direction | Description |
|---|---|---|
l | in | List to push item into |
val | in | Pointer to value to be prepended |
Success
Returns v the list itself on success.
Failure
Returns NULL otherwise.
Usage example (Cross-references)
- In
ListInt.c:52:
if (list->length > 0) {
i32 popped;
ListPopFront(list, &popped);
}
break;