The Complete SPRLIB & ANNLIB

malloc_net

- allocate a NET structure from a pool

SYNOPSIS

NET *malloc_net ()

ARGUMENTS

None.

RETURNS

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

FUNCTION

The NET structure is taken from a pool of size NET_STOCK (see STOCK-variables). If all structures in the pool are used, a new pool is allocated using malloc_netlib. The NET 's NetText field is set to a zero length string; the creation and modification date are set using the time_stamp function and the fields FirstUnit, LastUnit, FirstWeight are set to NULL. Finally, SystemDataRWFlag is set to 0, indicating write access to all sub-structures (see NET-ACCESS-flags).

SEE ALSO

free_net , malloc_layer, malloc_map, malloc_unit , 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