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

Go to the source code of this file.

Functions

t_arrayarray_zeros (const t_type *type, size_t size)
 Initializes a new array of the specified size, filled with zeros. More...
 

Function Documentation

◆ array_zeros()

t_array* array_zeros ( const t_type type,
size_t  size 
)

Initializes a new array of the specified size, filled with zeros.

Parameters
typeThe type of items that this array can hold
sizeThe size
Returns
The new array of the specified size, filled with zeros

Definition at line 16 of file array_zeros.c.