7 /*******************************************************************************
9 * Allocate number of bytes of memory equal to "block".
11 *******************************************************************************/
13 void *mem_alloc (unsigned long block
, char *item
)
18 ptr
= (void *) malloc (block
);
21 memset (ptr
, 0, block
);
23 fprintf (stderr
, "Unable to allocate %s\n", item
);
30 /****************************************************************************
32 * Free memory pointed to by "*ptr_addr".
34 *****************************************************************************/
36 void mem_free (void **ptr_addr
)
39 if (*ptr_addr
!= NULL
) {