Everything

malloc


Allocates a storage area.

[Format]

#include <stdlib.h>

void *malloc (size_t size);

[Parameters]

size Size in number of bytes of storage area to allocate

[Return values]

Normal: Starting address of allocated storage area

Abnormal: Storage allocation failed, or size is 0: NULL

[Remarks]

The malloc function allocates a storage area of a specified number of bytes by size.

The CC-RX has a security facility for detecting illegal operations to storage areas. For details, refer to the -secure_malloc option in "2.5.4 Library Generator Options".