1ADDLOFIG(3) MBK LOGICAL FUNCTIONS ADDLOFIG(3)
2
3
4
6 addlofig - create a new structural cell model
7
9 #include "mlo.h"
10 lofig_list ∗addlofig(figname)
11 char ∗figname;
12
14 figname Name of the figure to be created
15
17 addlofig creates a new figure called figname and adds it to the list of
18 figure in memory. The new figure is added in front of the list, and
19 becomes itself the list head. No check is performed to see if a figure
20 with the figname exists on disk. If it is the case, the preexisting
21 file will be erased while saving.
22 The fields LOCON, LOINS, LOSIG, BKSIG, LOPAR LOTRS and USER are set to
23 NULL.
24 The field MODE is set to 'A'.
25 The field NEXT points to the previous head of list.
26
28 addlofig returns a pointer to the newly created figure.
29
31 "∗∗∗ mbk error ∗∗∗ illegal addlofig figure figname already exists"
32 There is already a logical figure called figname in memory, so
33 it's impossible to give this name to a cell to be created.
34
36 #include "mlo.h"
37 lofig_list ∗get_the_fig(name)
38 char ∗name;
39 {
40 lofig_list ∗pt, ∗fill_fig(/∗ lofig_list ∗ ∗/);
41 /∗ scan figure list ∗/
42 for (pt = HEAD_LOFIG; pt; pt = pt->NEXT)
43 if (!strcmp(pt->NAME, figname))
44 break;
45 return pt ? pt : fill_fig(addlofig(figname));
46 }
47
49 mbk(1), lofig(3), getlofig(3), dellofig(3), loadlofig(3), savelofig(3),
50 flattenlofig(3), rflattenlofig(3).
51
52
53
54
55
56
57ASIM/LIP6 October 1, 1997 ADDLOFIG(3)