
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_ncalloc() allocate and zero memory on the near heap</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
_ncalloc() Allocate and Zero Memory on the Near Heap
#include <malloc.h>
#include <stdlib.h>
void _near *_ncalloc(num, size);
size_t num; Number of elements requested
size_t size; Size of each element (bytes)
_ncalloc() is the near heap version of calloc(); it allocates num
elements, each of size size, and zeros them on the near heap. This
function returns a pointer to the new block of memory if successful
and a NULL pointer otherwise. See calloc() for more information.
Returns: A pointer to the new block of allocated memory on
the near heap if the allocation was successful; NULL
otherwise.
Portability: Not supported by the ANSI standard.
See Also: calloc() free() halloc() hfree() malloc() realloc()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson