1GIVELOSIG(3) MBK LOGICAL UTILITY FUNCTIONS GIVELOSIG(3)
2
3
4
6 givelosig - give a logical signal
7
9 #include "mlo.h"
10 losig_list ∗givelosig(ptfig, index)
11 lofig_list ∗ptfig;
12 long index;
13
15 ptfig Pointer to the figure in which the signal should be
16 seeked or created
17
18 index Index of the signal to find or create
19
21 givelosig looks in the list of signals of the logical model pointed to
22 by ptfig for a signal identified by its index. If this signal exists,
23 then its pointer is returned, else, the signal is created, with direc‐
24 tion, DIR, UNKNOWN, and TYPE INTERNAL, and, of course INDEX index, and
25 the pointer is returned.
26
28 givelosig returns a pointer to the signal.
29
31 #include "mlo.h"
32 losig_list ∗give_sig_by_name(figname, index)
33 char ∗figname;
34 long index;
35 {
36 /∗ never fails ∗/
37 return givelosig(getlofig(figname), index);
38 }
39
41 mbk(1), lofig(3), losig(3), addlosig(3), dellosig(3).
42
43
44
45
46
47
48ASIM/LIP6 October 1, 1997 GIVELOSIG(3)