-

Changes

Jump to: navigation, search

Functions HI-TECH C MALLOC

661 bytes added, 22:25, 31 July 2017
Created page with "<strong>MALLOC</strong> ==SYNOPSIS== #include <stdlib.h> void * malloc(size_t cnt) ==DESCRIPTION== <strong>Malloc</strong>() attempts to allocate cnt bytes of memory..."
<strong>MALLOC</strong>
==SYNOPSIS==

#include <stdlib.h>

void * malloc(size_t cnt)


==DESCRIPTION==
<strong>Malloc</strong>() attempts to allocate cnt bytes of memory from
the "heap", the dynamic memory allocation area. If successful, it returns a pointer to the block, otherwise 0
is returned. The memory so allocated may be freed with
<strong>free</strong>(), or changed in size via <strong>realloc</strong>(). <strong>Malloc</strong>()
calls <strong>sbrk</strong>() to obtain memory, and is in turn called by
<strong>calloc</strong>(). <strong>Malloc</strong>() does not clear the memory it
obtains.

==SEE ALSO==

calloc, free, realloc

Navigation menu