NAME
kjb_calloc - Allocates memory from the heap.
SYNOPSIS
#include "l/l_sys_mal.h"
Example compile flags (system dependent):
-DLINUX_386 -DLINUX_386_P4
-I/home/kobus/include
-L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
-lKJB -llapack -lblas -lg2c -lXext -lX11
void *kjb_calloc
(
Malloc_size num_items,
Malloc_size item_size
);
DESCRIPTION
This routine is a replacement for calloc. It is similar to kjb_malloc, in
anology with calloc. (See kjb_malloc for more information).
The routine kjb_free should be used to free memory allocated by this routine.
kjb_free is normally accessed through the macro kjb_free.
RETURNS
On error, this routine returns NULL, with an error message being set. On
success it returns a pointer to the memory which has been zero'd, just
like calloc.
MACROS
Normally kjb_calloc should be accessed through the macro KJB_CALLOC(x).
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTOR
Kobus Barnard
SEE ALSO
memory_used
,
kjb_malloc
,
kjb_realloc
,
watch_for_free
,
check_initialization
,
optimize_free
,
optimize_free_2
,
kjb_free