NAME

check_initialization - (Debugging) Checks that memory was initialized

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 check_initialization
(
	const void *ptr,
	size_t count,
	size_t block_size
);

PARAMETERS

size_t count
Number of items of size block_size to check.
size_t block_size
Size of item in bytes.

DESCRIPTION

In development code, this routine checks for memory which should have been initialized, but was not. It can only be used for memory where consecutive 0xff for block_size bytes is invalid data (as in the case of floats with block_size 4 and and doubles with block_size 8 but not ints and char). If the initialization checking option is not set, then this routine silently does nothing

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_calloc , kjb_realloc , watch_for_free , optimize_free , optimize_free_2 , kjb_free