Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / ia64 / stand / common / calloc.c
blob951fa35f7eedc6467f8687ed6ebd8b5732698bc3
1 /* $NetBSD: calloc.c,v 1.1 2006/04/07 14:21:29 cherry Exp $ */
3 #include <sys/cdefs.h>
4 #include <sys/types.h>
6 #include <lib/libsa/stand.h>
8 void *
9 calloc(u_int size1, u_int size2)
11 u_int total_size = size1 * size2;
12 void *ptr;
14 if(( (ptr = alloc(total_size)) != NULL)) {
15 memset(ptr, 0, total_size);
18 /* alloc will crib for me. */
20 return(ptr);