Skip to content

ListPushArr

Description

Default range-push aliases the L-form: link count new nodes at the tail of the list, taking ownership of the source range when no deep-copy handler is configured.

Parameters

Name Direction Description
l in,out List handle.
arr in Pointer to source array. Must be non-NULL when count > 0.
count in Number of elements to append.

Success

Returns true; list length grows by count.

Failure

Returns false on allocation failure during the first node allocation; the list and source are unchanged.

Usage example (Cross-references)

Usage examples (Cross-references)
    #define ListMustPushArr(l, arr, count)                                                                                 \
        do {                                                                                                               \
            if (!ListPushArr((l), (arr), (count))) {                                                                       \
                LOG_FATAL("ListMustPushArr failed");                                                                       \
            }                                                                                                              \
Last updated on