allocate

Allocate an array of the given type and length whose buffer is allocated by malloc().

Item[]
allocate
(
Item
)
()

Parameters

Item

the type of items making up the array

num_elements size_t

the number of array elements to allocate

Return Value

Type: Item[]

the malloc allocated array

Meta