Supported Browsers Home   
PM_callRealMode Previous   
PM_closeConsole Next   
External Functions Up   

PM_calloc

Allocate and clear a large memory block.

Declaration

void * PMAPI PM_calloc(
    size_t nelem,
    size_t size)

Prototype In

pmapi.h

Parameters

nelem

number of contiguous size-byte units to allocate

size

size of unit in bytes

 

Return Value

Pointer to allocated memory if successful, NULL if out of memory.

Description

Allocates a block of memory of length (size * nelem), and clears the allocated area with zeros (0). If you have changed the memory allocation routines with the PM_useLocalMalloc function, then calls to this function will actually make calls to the local memory allocation routines that you have registered.

See Also

PM_malloc, PM_realloc, PM_free, PM_useLocalMalloc

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com