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

Go to the source code of this file.

Functions

IFuid CKTnodName (CKTcircuit *ckt, int nodenum)
 

Function Documentation

IFuid CKTnodName ( CKTcircuit ckt,
int  nodenum 
)

Definition at line 21 of file cktnodn.c.

25 {
26  CKTnode *here;
27 
28  for (here = ckt->CKTnodes; here; here = here->next) {
29  if (here->number == nodenum) {
30  /* found it */
31  return (here->name);
32  }
33  }
34  /* doesn't exist - do something */
35  return ("UNKNOWN NODE");
36 }
IFuid name
Definition: cktdefs.h:31
struct sCKTnode * next
Definition: cktdefs.h:43
int number
Definition: cktdefs.h:39
CKTnode * CKTnodes
Definition: cktdefs.h:135
static int nodenum()