Jspice3
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
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 
INPmodel * modtab
Definition: inpmkmod.c:13
int INPlookMod(char *name)
Definition: inplkmod.c:18
#define NULL
Definition: spdefs.h:121