ListPopBack

Table of Contents

ListPopBack

Description

Pop item from list back.

Parameters

NameDirectionDescription
lin,outList to pop item from.
valoutPopped 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)

    if (list->length > 0) {
    i32 popped;
    ListPopBack(list, &popped);
    }
    break;

Share :