Jspice3
Main Page
Data Structures
Files
File List
Globals
inplkmod.c
Go to the documentation of this file.
1
/***************************************************************************
2
JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
3
Copyright 1990 Regents of the University of California. All rights reserved.
4
Authors: 1985 Thomas L. Quarles
5
1992 Stephen R. Whiteley
6
****************************************************************************/
7
8
#include "
spice.h
"
9
#include <stdio.h>
10
#include "
inpdefs.h
"
11
12
13
extern
INPmodel
*
modtab
;
14
15
16
/*ARGSUSED*/
17
int
18
INPlookMod
(name)
19
20
char *name;
21
{
22
INPmodel
**i;
23
24
for
(i = &modtab; *i != (
INPmodel
*)
NULL
; i = &((*i)->INPnextModel)) {
25
if
(strcmp((*i)->INPmodName,name) == 0) {
26
/* found the model in question - return true */
27
return
(1);
28
}
29
}
30
/* didn't find model - return false */
31
return
(0);
32
}
33
modtab
INPmodel * modtab
Definition:
inpmkmod.c:13
INPlookMod
int INPlookMod(char *name)
Definition:
inplkmod.c:18
NULL
#define NULL
Definition:
spdefs.h:121
inpdefs.h
spice.h
sINPmodel
Definition:
inpdefs.h:71
src
lib
inp
inplkmod.c
Generated by
1.8.11