Skip to content

ListPopBack

ListPopBack

Description

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)

Usage examples (Cross-references)
                if (list->length > 0) {
                    i32 popped;
                    ListPopBack(list, &popped);
                }
                break;
Last updated on