You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
871 B
33 lines
871 B
/**********
|
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
|
Author: 1985 Thomas L. Quarles
|
|
**********/
|
|
/*
|
|
*/
|
|
|
|
#include "ngspice.h"
|
|
#include <stdio.h>
|
|
#include "inpdefs.h"
|
|
#include "inp.h"
|
|
|
|
|
|
extern INPmodel *modtab;
|
|
|
|
/*-----------------------------------------------------------------
|
|
* This fcn accepts a pointer to the model name, and returns 1 if
|
|
* the model exists in the model table, and returns 0 if hte model
|
|
* doesn't exist in the model table.
|
|
*----------------------------------------------------------------*/
|
|
int INPlookMod(char *name)
|
|
{
|
|
register INPmodel **i;
|
|
|
|
for (i = &modtab; *i != (INPmodel *) NULL; i = &((*i)->INPnextModel)) {
|
|
if (strcmp((*i)->INPmodName, name) == 0) {
|
|
/* found the model in question - return TRUE */
|
|
return (1);
|
|
}
|
|
}
|
|
/* didn't find model - return FALSE */
|
|
return (0);
|
|
}
|