-

Functions HI-TECH C CALLOC

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 18:28, 31 July 2017 by Kumokosi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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