ListPopBack
- Macro
- October 8, 2025
Table of Contents
ListPopBack
ListPopBackDescription
Pop item from list back.
Parameters
| Name | Direction | Description |
|---|---|---|
l | in,out | List to pop item from. |
val | out | Popped item will be stored here. Make sure this has sufficient memory to store memcopied data. If no pointer is provided, then it’s equivalent to deleting item from last position. |
Success
Returns v on success
Failure
Returns NULL otherwise.
Usage example (Cross-references)
- In
ListInt.c:44:
if (list->length > 0) {
i32 popped;
ListPopBack(list, &popped);
}
break;