__4kmalc() — Allocate Page-Aligned Storage

Purpose

This function performs in the same manner as malloc(), except that it allocates page-aligned storage. Storage allocated by this function is not part of the heap, so you must free this storage explicitly using the free() function before this environment is terminated. Storage allocated using __4kmalc() is not automatically freed when the environment is terminated.

The function is available under the System Programming Environment.

Format

#include <spc.h>

void *_4kmalc(size_t size);