NAME

UINT16_REALLOC - (MACRO) Sets up call for kjb_realloc for 16 bit unsigned integers

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 


kjb_uint16 *UINT16_REALLOC
(
	void *p,
	Malloc_size n
);

DESCRIPTION

This macro takes a count for the number of 16 bit unsigned integers needed and returns storage for them. It is defined by:
  #define UINT16_REALLOC(p, n)
       (kjb_uint16*)kjb_realloc(p, ((Malloc_size)(n))*(sizeof(kjb_uint16)))

NOTE n is cast to Malloc_size is almost always size_t.

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

KJB_MALLOC , KJB_CALLOC , KJB_REALLOC , TYPE_MALLOC , N_TYPE_MALLOC , UCHAR_MALLOC , BYTE_MALLOC , STR_MALLOC , BOOL_MALLOC , SHORT_MALLOC , INT_MALLOC , UINT_MALLOC , LONG_MALLOC , FLT_MALLOC , DBL_MALLOC , INT16_MALLOC , UINT16_MALLOC , INT32_MALLOC , UINT32_MALLOC , N_TYPE_REALLOC , UCHAR_REALLOC , BYTE_REALLOC , STR_REALLOC , SHORT_REALLOC , INT_REALLOC , UINT_REALLOC , LONG_REALLOC , FLT_REALLOC , DBL_REALLOC , INT16_REALLOC , INT32_REALLOC , UINT32_REALLOC , CHECK_FOR_HEAP_OVERRUNS