1ISVSS(3)                     MBK UTILITY FUNCTIONS                    ISVSS(3)
2
3
4

NAME

6       isvss -tells if a name contains the pattern defined by the user
7

SYNOPSIS

9       #include "mut.h"
10       char* isvss(s)
11       char ∗s;
12

PARAMETER

14       s                   Pointer to the string to be check as power high
15

DESCRIPTION

17       isvss  searches  an  occurrence of the string defined by the MBK_VSS(1)
18       environment variable in the string s.  If this string is not set by the
19       user, its default value is "vss".
20

RETURN VALUE

22       isvss return NULL the pattern is not present If the pattern is found, a
23       value different from NULL is returned.
24

EXAMPLE

26       #include "mut.h"
27       #include "mlo.h"
28       find_a_vss(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 (isvss(c->NAME))
36                return c->SIG;
37             if (isvss(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 (isvss(getsigname(s)))
44                   return s;
45          return NULL;
46       }
47

SEE ALSO

49       mbk(1), mbkenv(3), instr(3), isvdd(3), MBK_VDD(1), MBK_VSS(1).
50
51
52
53
54
55
56ASIM/LIP6                       October 1, 1997                       ISVSS(3)
Impressum