NAME

kjb_calloc - Allocates memory from the heap.

SYNOPSIS

#include "l/l_sys_mal.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


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

DOCUMENTER

Kobus Barnard

SEE ALSO

memory_used , kjb_malloc , kjb_realloc , watch_for_free , check_initialization , optimize_free , optimize_free_2 , kjb_free