Windows2003-3790/base/zlib/default_allocator.c
2020-09-30 16:53:55 +02:00

14 lines
256 B
C

#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);
}