07aa4cf6cddeda499c84509defb9a68b6e308f32
[reactos.git] / lib / crtdll / stdlib / calloc.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdlib.h>
3 #include <msvcrt/string.h>
4
5 void *
6 calloc(size_t size, size_t nelem)
7 {
8   void *rv = malloc(size*nelem);
9   if (rv)
10     memset(rv, 0, size*nelem);
11   return rv;
12 }