man for isck

This commit is contained in:
Christophe Alexandre 2003-04-03 14:55:19 +00:00
parent 6af836f801
commit 8132c98ca3
1 changed files with 81 additions and 0 deletions

View File

@ -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