1ISCK(3) MBK UTILITY FUNCTIONS ISCK(3)
2
3
4
6 isck -tells if a name is the pattern defined by the user
7
9 #include "mut.h"
10 int isck(s)
11 char ∗s;
12
14 s Pointer to the string to be check as clock
15
17 isck compares the string defined by the MBK_CK(1) environment variable
18 with the string s. If this string is not set by the user, its default
19 value is "ck".
20
22 isck returns 0 the pattern is not present If the pattern is found, 1 is
23 returned.
24
26 #include "mut.h"
27 #include "mlo.h"
28 find_a_ck(f)
29 lofig_list *f;
30 {
31 locon_list *c;
32 losig_list *s;
33 /* first check connectors */
34 for (c = f->LOCON; c; c = c->NEXT) {
35 if (isck(c->NAME))
36 return c->SIG;
37 if (isck(getsigname(c->SIG)))
38 return c->SIG;
39 }
40 /* then check internal signals */
41 for (s = f->LOSIG; s; s = s->NEXT)
42 if (s->TYPE == INTERNAL)
43 if (isck(getsigname(s)))
44 return s;
45 return NULL;
46 }
47
49 mbk(1), mbkenv(3), instr(3), isvdd(3), isvss(3), MBK_CK(1), MBK_VDD(1),
50 MBK_VSS(1).
51
52
53
54
55
56
57ASIM/LIP6 October 1, 1997 ISCK(3)