1ADDLOMODEL(3) MBK LOGICAL FUNCTIONS ADDLOMODEL(3)
2
3
4
6 addlomodel - create a tempotary logical model and add it to a list
7
9 #include "mlo.h"
10 lofig_list ∗addlomodel(model, name)
11 lofig_list ∗model;
12 char ∗name;
13
15 model Pointer to the head of a model list
16
17 name Name of the model to be created
18
20 addlomodel creates a new lofig_list element and adds it to the front of
21 the list pointed to by model, and becomes itself the list head.
22 The addlomodel function is mosty used to create a temporary list of
23 lofig in order to represent the "in file" instances' models. In fact,
24 all the file format used with mbk have the notion of models local to
25 files, so they are not figure, but are temporarly used to create
26 instance connectors, for example. For details on the structure, see
27 lofig(3).
28
30 addlomodel returns a pointer to the new head of model list.
31
33 "∗∗∗ mbk error ∗∗∗ addlomodel impossible : model name already exists"
34 The model, not the figure, is already present in the model list
35 pointed to by model, and since a model should be unique, this
36 can't be.
37
39 #include "mut.h"
40 #include "mlo.h"
41 void add_model(name)
42 char ∗name;
43 {
44 MODEL = addlomodel(MODEL, name);
45 }
46
48 mbk(1), lofig(3), getlomodel(3), freelomodel(3).
49
50
51
52
53
54
55ASIM/LIP6 October 1, 1997 ADDLOMODEL(3)