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