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