Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
256 B

  1. #include <windows.h>
  2. void * zcalloc (void *opaque, unsigned items, unsigned size)
  3. {
  4. return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size*items);
  5. }
  6. void zcfree (void *opaque, void *ptr)
  7. {
  8. HeapFree(GetProcessHeap(), 0, ptr);
  9. }