7.20.3.3 The malloc function

Synopsis

1

#include <stdlib.h>
void *malloc(size_t size);

Description

2

The malloc function allocates space for an object whose size is specified by size and whose value is indeterminate.

Returns

3

The malloc function returns either a null pointer or a pointer to the allocated space.