1 /* calloc -- allocate memory which has been initialized to zero.
2 This function is in the public domain. */
10 #define size_t unsigned long
13 /* For systems with larger pointers than ints, this must be declared. */
14 PTR malloc PARAMS ((size_t));
17 calloc (nelem, elsize)
22 if (nelem == 0 || elsize == 0)
25 ptr = malloc (nelem * elsize);
26 if (ptr) bzero (ptr, nelem * elsize);