Jspice3
ckttyplk.c File Reference
#include "spice.h"
#include "devdefs.h"
#include "cktext.h"
Include dependency graph for ckttyplk.c:

Go to the source code of this file.

Functions

int CKTtypelook (char *type)
 

Variables

SPICEdevDEVices []
 

Function Documentation

int CKTtypelook ( char *  type)

Definition at line 20 of file ckttyplk.c.

23 {
24  int i;
25 
26  for (i = 0; i < DEVmaxnum; i++) {
27  if (strcmp(type,DEVices[i]->DEVpublic.name) == 0) {
28  /*found the device - return it */
29  return (i);
30  }
31  }
32  return (-1);
33 }
Definition: types.c:18
SPICEdev * DEVices[]
Definition: sconfig.c:109
int DEVmaxnum
Definition: sconfig.c:166

Variable Documentation

SPICEdev* DEVices[]

Definition at line 109 of file sconfig.c.