The Complete SPRLIB & ANNLIB

malloc_weight_value

- allocate a WEIGHT_VALUE structure from a pool

SYNOPSIS

WEIGHT_VALUE *malloc_weight_value ()

ARGUMENTS

None.

RETURNS

A pointer to a newly allocated WEIGHT_VALUE, or NULL in case of allocation failure.

FUNCTION

The WEIGHT_VALUE structure is taken from a pool of size WEIGHTVAL_STOCK (see STOCK-variables). If all structures in the pool are used, a new pool is allocated using malloc_netlib. The history-field (Hist) is set to NULL.

SEE ALSO

free_weight_value, malloc_net , malloc_layer, malloc_map, malloc_unit, malloc_unit_value , malloc_link, malloc_weight

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998