Calloc

Top  Previous  Next

Initialized memory procure.

With Calloc can be requested with 0 initialized storage areas by the system. Because some operating system does not like it maybe if storage areas are requested in a DLL and are released in another DLL again, this central routine was introduced with which all storage areas can be requested by the system if they should leave the DLL borders. It is requested all together cnt*size bytes. The routines are optimised on small memory blocks. It is possible to request for large amounts of memories in blocks of few bytes without overloading the system.

Parametre

size (size_t) [IN]

Every element of the storage area requested anew is big size bytes.

cnt (size_t) [IN]

It are requested all together cnt elements of the size size.

Result

(void *) [OUT]

The procedure returns an untyped pointer on the anew generated storage area. If a mistake has appeared, ZERO is delivered as a result.

Declaration

#include "basic.h"

 

void DLLENTRY *Calloc (

size_t size,

size_t cnt

);