ListInitT

Table of Contents

ListInitT

Description

Initialize a list with default arguments.

Parameters

NameDirectionDescription
linPointer to list memory that needs to be initialized.

Usage example (from documentation)

    List(i32) list = ListInitT(list);

Usage example (Cross-references)

    
    void init_int_list(IntList *list) {
    *list = ListInitT(*list);
    }
    
    case LIST_INT_MERGE : {
    IntList temp  = ListInitT(temp);
    uint8_t count = extract_u8(data, offset, size);
    count         = count % 4;

Share :

Related Posts

VecInitWithDeepCopyT

VecInitWithDeepCopyT Description Initialize given vector. Default alignment is 1 It is mandatory to initialize vectors before use. Not doing so is undefined behaviour.

Read More

VecInitAlignedT

VecInitAlignedT Description Initialize given vector with given alignment. It is mandatory to initialize vectors before use. Not doing so is undefined behaviour. Provided alignment is used to keep all objects at an aligned memory location, avoiding UB in some cases. It’s recommended to use aligned vector when dealing with structs containing unions.

Read More

VecInit

VecInit Description Initialize vector. Default alignment is 1 It is mandatory to initialize vectors before use. Not doing so is undefined behaviour.

Read More