Windows2003-3790/base/zlib/default_allocator.c

14 lines
256 B
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
#include <windows.h>
void * zcalloc (void *opaque, unsigned items, unsigned size)
{
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size*items);
}
void zcfree (void *opaque, void *ptr)
{
HeapFree(GetProcessHeap(), 0, ptr);
}