1DELLORES(3) MBK LOGICAL FUNCTIONS DELLORES(3)
2
3
4
6 dellores - delete a logical resistor
7
9 #include "mlo.h"
10
11 int dellores(ptfig,ptres)
12 lofig_list ∗ptfig ;
13 lores_list ∗ptres ;
14
16 ptfig Pointer to the figure in which the resistor should
17 be deleted
18
19 ptres Pointer to the resistor to be deleted.
20
22 dellores delete the resistor pointed to by ptres in the figure pointed
23 to by ptfig. The list consistency is maintainded, and the space freed.
24 The resistor connectors are also freed, since if the resistor disap‐
25 pear, no more connections can occur on it.
26
28 dellores returns 1 if the resistor has been deleted, 0 if the resistor
29 pointer does not exists in the list.
30
32 #include "mlo.h"
33
34 char ∗was_existing(lofig_list ∗ptfig,lores_list ∗ptres)
35 {
36 return dellores(ptfig,ptres) ? "you just killed it!" : "wasn't here anyway" ;
37 }
38
40 mbk(1), lofig(3), lores(3), addlores(3).
41
42
43
44
45
46
47ASIM/LIP6 August 14, 2002 DELLORES(3)