The Complete SPRLIB & ANNLIB
get_unit
- maps a unit ID to a pointer
SYNOPSIS
UNIT *get_unit
(UnitId, net)
ARGUMENTS
long
id
A
UNIT
ID.
NET
*net
A pointer to a correctly filled
NET
structure.
RETURNS
A pointer to the
UNIT
having a
UnitId
field with value
id,
or
NULL
in case that
UNIT
is not found.
NOTE
This function is used by the
fscanf_network
function after all
UNITs
are read to find the appropriate unit pointers.
SEE ALSO
fscanf_network
This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998