Skip to content

ListPushArrR

Description

Append a contiguous range of elements to the end of the list. R-value form.

Success

Returns true. count new nodes holding copies of the source elements are linked at the tail; list length grows by count. The source range is untouched.

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 ListMustPushArrR(l, arr, count)                                                                                \
        do {                                                                                                               \
            if (!ListPushArrR((l), (arr), (count))) {                                                                      \
                LOG_FATAL("ListMustPushArrR failed");                                                                      \
            }                                                                                                              \
Last updated on