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

Go to the source code of this file.

Functions

CKTnodeCKTnum2nod (CKTcircuit *ckt, int node)
 

Function Documentation

CKTnode* CKTnum2nod ( CKTcircuit ckt,
int  node 
)

Definition at line 21 of file cktnum2n.c.

25 {
26  CKTnode *here;
27 
28  for (here = ((CKTcircuit *)ckt)->CKTnodes; here; here = here->next) {
29  if (here->number == node) {
30  return (here);
31  }
32  }
33  return ((CKTnode *)NULL);
34 }
#define NULL
Definition: spdefs.h:121
struct sCKTnode * next
Definition: cktdefs.h:43
int number
Definition: cktdefs.h:39