1 /* $NetBSD: calloc.c,v 1.1 2006/04/07 14:21:29 cherry Exp $ */
6 #include <lib/libsa/stand.h>
9 calloc(u_int size1
, u_int size2
)
11 u_int total_size
= size1
* size2
;
14 if(( (ptr
= alloc(total_size
)) != NULL
)) {
15 memset(ptr
, 0, total_size
);
18 /* alloc will crib for me. */