diff --git a/alliance/src/mbk/man3/isck.3 b/alliance/src/mbk/man3/isck.3 new file mode 100644 index 00000000..bd56e7e6 --- /dev/null +++ b/alliance/src/mbk/man3/isck.3 @@ -0,0 +1,81 @@ +.\" $Id: isck.3,v 1.1 2003/04/03 14:55:19 xtof Exp $ +.\" @(#)isck.2 2.11 91/08/22 ; Labo masi cao-vlsi; Author : Frederic Petrot +.if t \{\ +.so man1/alc_contents.mac +.XS \n% +.ti 0.2i +isck +.XE +.XS4 \n% +.ti 0.2i +isck +.XE4 \} +.TH ISCK 3 "October 1, 1997" "ASIM/LIP6" "MBK UTILITY FUNCTIONS" +.SH NAME +isck \-tells if a name contains the pattern defined by the user +.so man1/alc_origin.1 +.SH SYNOPSYS +.nf +.if n \{\ +.ft B \} +.if t \{\ +.ft CR \} +#include "mut.h" +void isck(s) +char \(**s; +.ft R +.fi +.SH PARAMETER +.TP 20 +\fIs\fP +Pointer to the string to be check as power high +.SH DESCRIPTION +\fBisck\fP searches an occurence of the string defined by the \fBMBK_CK\fP(1) +environment variable in the string \fIs\fP. +If this string is not set by the user, its default value is "ck". +.SH RETURN VALUE +\fBisck\fP return \fBNULL\fP the pattern is not present +If the pattern is found, a value different from \fBNULL\fP is returned. +.SH EXAMPLE +.ta 3n 6n 9n 12n 15n 18n 21n +.nf +.if n \{\ +.ft B \} +.if t \{\ +.ft CR \} +#include "mut.h" +#include "mlo.h" +find_a_ck(f) +lofig_list *f; +{ +locon_list *c; +losig_list *s; + /* first check connectors */ + for (c = f->LOCON; c; c = c->NEXT) { + if (isck(c->NAME)) + return c->SIG; + if (isck(getsigname(c->SIG))) + return c->SIG; + } + /* then check internal signals */ + for (s = f->LOSIG; s; s = s->NEXT) + if (s->TYPE == INTERNAL) + if (isck(getsigname(s))) + return s; + return NULL; +} +.ft R +.fi +.SH SEE ALSO +.BR mbk (1), +.BR mbkenv (3), +.BR instr (3), +.BR isvdd (3), +.BR isvss (3), +.BR MBK_CK (1), +.BR MBK_VDD (1), +.BR MBK_VSS (1). + + +.so man1/alc_bug_report.1 +