Jspice3
cktfnode.c File Reference
#include "spice.h"
#include <stdio.h>
#include "cktdefs.h"
#include "sperror.h"
#include "cktext.h"
Include dependency graph for cktfnode.c:

Go to the source code of this file.

Functions

int CKTfndNode (GENERIC *ckt, GENERIC **node, IFuid name)
 

Function Documentation

int CKTfndNode ( GENERIC ckt,
GENERIC **  node,
IFuid  name 
)

Definition at line 21 of file cktfnode.c.

26 {
27  CKTnode *here;
28 
29  for (here = ((CKTcircuit *)ckt)->CKTnodes; here; here = here->next) {
30  if (here->name == name) {
31  if (node) *node = (char *)here;
32  return (OK);
33  }
34  }
35  return (E_NOTFOUND);
36 }
IFuid name
Definition: cktdefs.h:31
#define E_NOTFOUND
Definition: iferrmsg.h:35
#define OK
Definition: iferrmsg.h:17
struct sCKTnode * next
Definition: cktdefs.h:43