dos_compilers/Manx Aztec C86 v52a/LIB/STDLIB/CALLOC.C
2024-07-02 08:25:54 -07:00

13 lines
253 B
C

/* Copyright (C) 1984 by Manx Software Systems */
char *calloc(nelem, size)
unsigned nelem, size;
{
register unsigned i = nelem*size;
register char *cp, *_malloc();
if ((cp = _malloc(i)) != (char *)0)
_setmem(cp, i, 0);
return cp;
}