/* @(#)calloc.c 4.2 (Berkeley) 01/21/85 */ /* * Calloc - allocate and clear memory block */ char * calloc(num, size) register unsigned num, size; { extern char *malloc(); register char *p; size *= num; if (p = malloc(size)) bzero(p, size); return (p); } cfree(p, num, size) char *p; unsigned num; unsigned size; { free(p); }