-
Difference between revisions of "Functions HI-TECH C CALLOC"
From HI-TECH C for CP/M Fan WIKI(EN)
(Created page with "<strong>CALLOC</strong> ==SYNOPSIS== #include <stdlib.h> char * calloc(size_t cnt, size_t size) ==DESCRIPTION== <strong>Calloc</strong>() attempts to obtain a cont...") |
(No difference)
|
Latest revision as of 18:28, 31 July 2017
CALLOC
SYNOPSIS
#include <stdlib.h> char * calloc(size_t cnt, size_t size)
DESCRIPTION
Calloc() attempts to obtain a contiguous block of dynamic memory which will hold cnt objects, each of length size. The block is filled with zeroes. A pointer to the block is returned, or 0 if the memory could not be allocated.
SEE ALSO
brk, sbrk, malloc, free