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

NAME

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

SYNOPSIS

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

PARAMETER

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

DESCRIPTION

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

RETURN VALUE

22       isvdd 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_vdd(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 (isvdd(c->NAME))
36                return c->SIG;
37             if (isvdd(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 (isvdd(getsigname(s)))
44                   return s;
45          return NULL;
46       }
47

SEE ALSO

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