VecPushFrontR

Table of Contents

VecPushFrontR

Description

Push item into vector front.

Parameters

NameDirectionDescription
vin,outVector to push item into
rvalinr-value to be inserted

Success

return

Failure

Does not return

Usage example (Cross-references)

    /// FAILURE : Returns `NULL` otherwise.
    ///
    #define StrPushFront(str, chr) VecPushFrontR((str), (chr))
    
    ///
    int values[] = {10, 20, 30, 40, 50};
    for (int i = 0; i < 5; i++) {
    VecPushFrontR(&vec, values[i]);
    }
    // Push items to the vector
    VecPushBackR(&vec, item1);
    VecPushFrontR(&vec, item2);
    VecPushBackR(&vec, item3);

Share :