Allocate and clear memory.
void* __fastcall__ calloc (size_t n, size_t size);
callocallocates memory for an array of
nelements of size
size, clears the whole block with binary zeroes and returns a pointer to it. On error (not enough memory available),
- Clearing the memory may not have the expected effect on all platforms: pointers in the block may not be
NULLand floating point variables may not be zero (0.0). In other words: The "clearing" effect of this function should be used with care for portable programs.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- See also
_heapadd, _heapblocksize, _heapmaxavail, _heapmemavail, free, malloc, realloc