aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/zalloc.c
blob: 2a58a11e8327e09e5cc86984756b1f56209debb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * zalloc.c
 */

#include <stdlib.h>
#include <string.h>

void *zalloc(size_t size)
{
  void *ptr;

  ptr = malloc(size);
  if ( ptr )
    memset(ptr, 0, size);

  return ptr;
}