ListPopFront
ListPopFront
Description
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)
Usage examples (Cross-references)
- In
ListInt.c:52:
if (list->length > 0) {
i32 popped;
ListPopFront(list, &popped);
}
break;
Last updated on