C4 Engine Terathon Software C4 Engine API Documentation

• Memory Manager

API Links
Developer Links

MemoryMgr::ClearMemory

Defined in:  C4Memory.h
Clears a block of memory to zero.
Prototype

static void ClearMemory(void *ptr, unsigned long size);

Parameters
ptr A pointer to the beginning of the block to clear.
size The number of bytes to clear.
Description
The ClearMemory function sets size bytes of memory beginning at the pointer ptr to the value zero.
See Also

MemoryMgr::FillMemory

MemoryMgr::CopyMemory