The Complete SPRLIB & ANNLIB

check_links

- check if the links in a network are valid (LOCAL)

SYNOPSIS

int check_links (net)

ARGUMENTS

NET *net A pointer to a NET structure.

RETURNS

TRUE if an error was detected, FALSE if not.

FUNCTION

This function checks, for all UNIT structures in net, if its LINK structures have valid values. Checks include: LinkFlag should be INLINK for links in a UNIT 's InLink list, OUTLINK for links in a UNIT 's OutLink list (see LINK-flags); the Unit and Weight fields should not be NULL. Furthermore, the number of incoming and outgoing links is counted for each unit and compared to the values in its NumInLinks and NumOutLinks fields. Finally, the total number of links is compared to the NET structure's NumLinks field.

NOTE

This function is used by check_all_network.

SEE ALSO

check_net, check_units, check_weights, check_conn_to_input, check_conn_to_output, check_io_conn , check_incr_ids, check_decr_ids, check_order_ids, check_ff_net , check_all_network

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