nnoottmmeemm() -- General Function (libc)

Check whether memory is allocated
iinntt nnoottmmeemm(_p_t_r);
cchhaarr *_p_t_r;

nnoottmmeemm() checks if a memory block has been allocated by ccaalllloocc(), mmaalllloocc(),
or rreeaalllloocc(). _p_t_r points to the block to be checked.

nnoottmmeemm() searches the arena for _p_t_r.  It returns one if _p_t_r is not a memory
block obtained from mmaalllloocc(), ccaalllloocc(), or rreeaalllloocc(), and zero if it is.

_S_e_e _A_l_s_o
aarreennaa, ccaalllloocc(), ffrreeee(), lliibbcc, mmaalllloocc(), mmeemmookk(), rreeaalllloocc(), sseettbbuuff()

_N_o_t_e_s
The only valid use for nnoottmmeemm() is in debugging code, such as in the bodies
of  calls  to the  macro  aasssseerrtt(),  as shown  in  the  above example.   We
furthermore  recommend  that portable  code  should  conditionalize use  of
nnoottmmeemm() so that the code may continue to compile on systems that lack such
a facility.

