Jspice3
inplkmod.c File Reference
#include "spice.h"
#include <stdio.h>
#include "inpdefs.h"
Include dependency graph for inplkmod.c:

Go to the source code of this file.

Functions

int INPlookMod (char *name)
 

Variables

INPmodelmodtab
 

Function Documentation

int INPlookMod ( char *  name)

Definition at line 18 of file inplkmod.c.

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 }
INPmodel * modtab
Definition: inpmkmod.c:13
#define NULL
Definition: spdefs.h:121

Variable Documentation

INPmodel* modtab

Definition at line 13 of file inpmkmod.c.