The Complete SPRLIB & ANNLIB
malloc_unit
- allocate a UNIT structure from a pool
SYNOPSIS
ARGUMENTS
None.
RETURNS
A pointer to a newly allocated UNIT, or NULL in case of allocation failure.
FUNCTION
The UNIT structure is taken from a pool of size UNIT_STOCK (see
STOCK-variables).
If all structures in the pool are used, a new pool is allocated using
malloc_netlib. The
UNIT 's UnitName field is set to a zero length string; the
history-fields (Theta.Value.Hist, Value.Hist) and various other fields
(Theta.Next, InLinks, OutLinks, Next, Prev) are set to NULL.
SEE ALSO
free_unit, malloc_net , malloc_layer, malloc_map, malloc_unit_value , malloc_link, malloc_weight, malloc_weight_value
This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998