142117Sbostic /*- 242117Sbostic * Copyright (c) 1990 The Regents of the University of California. 335702Sbostic * All rights reserved. 435702Sbostic * 542117Sbostic * %sccs.include.redist.c% 635702Sbostic */ 735702Sbostic 826543Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*42185Sbostic static char sccsid[] = "@(#)calloc.c 5.5 (Berkeley) 05/17/90"; 1035702Sbostic #endif /* LIBC_SCCS and not lint */ 111956Swnj 1242117Sbostic #include <stdlib.h> 1335702Sbostic 1442117Sbostic void * 1542117Sbostic calloc(num, size) 1642117Sbostic size_t num; 1742117Sbostic register size_t size; 181956Swnj { 1942117Sbostic register void *p; 201956Swnj 2142117Sbostic size *= num; 2242117Sbostic if (p = malloc(size)) 2342117Sbostic bzero(p, size); 2435702Sbostic return(p); 251956Swnj } 261956Swnj 27*42185Sbostic void 2842117Sbostic cfree(p, num, size) 2942117Sbostic void *p; 3042117Sbostic size_t num, size; 311956Swnj { 3242117Sbostic (void)free(p); 331956Swnj } 34