ListPopFront

Table of Contents

ListPopFront

Description

Remove item from the very beginning of list.

Parameters

NameDirectionDescription
linList to push item into
valinPointer to value to be prepended

Success

Returns v the list itself on success.

Failure

Returns NULL otherwise.

Usage example (Cross-references)

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

Share :