data_structures
Functions
array_new.c File Reference
#include "array.h"
+ Include dependency graph for array_new.c:

Go to the source code of this file.

Functions

t_arrayarray_new (const t_type *type)
 Initializes a new empty array. More...
 

Function Documentation

◆ array_new()

t_array* array_new ( const t_type type)

Initializes a new empty array.

Parameters
typeThe type of items that this array can hold
Returns
The new array

Definition at line 16 of file array_new.c.