dellores.3alc - Man Page
delete a logical resistor
Synopsis
#include "mlo.h" int dellores(ptfig,ptres) lofig_list ∗ptfig ; lores_list ∗ptres ;
Parameters
- ptfig
Pointer to the figure in which the resistor should be deleted
- ptres
Pointer to the resistor to be deleted.
Description
dellores delete the resistor pointed to by ptres in the figure pointed to by ptfig. The list consistency is maintainded, and the space freed. The resistor connectors are also freed, since if the resistor disappear, no more connections can occur on it.
Return Value
dellores returns 1 if the resistor has been deleted, 0 if the resistor pointer does not exists in the list.
Example
#include "mlo.h" char ∗was_existing(lofig_list ∗ptfig,lores_list ∗ptres) { return dellores(ptfig,ptres) ? "you just killed it!" : "wasn't here anyway" ; }
See Also
mbk(1), lofig(3), lores(3), addlores(3).
Referenced By
addlores.3alc(3), getlores.3alc(3), lores.3alc(3), setlores.3alc(3).
August 14, 2002 ASIM/LIP6 MBK LOGICAL FUNCTIONS