Jspice3
cktnodn.c
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3f2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Thomas L. Quarles
5  1993 Stephen R. Whiteley
6 ****************************************************************************/
7 
8  /*
9  * CKTnodName(ckt)
10  * output information on all circuit nodes/equations
11  *
12  */
13 
14 #include "spice.h"
15 #include <stdio.h>
16 #include "cktdefs.h"
17 #include "cktext.h"
18 
19 
20 IFuid
22 
23 CKTcircuit *ckt;
24 int nodenum;
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
GENERIC * IFuid
Definition: ifsim.h:72
struct sCKTnode * next
Definition: cktdefs.h:43
int number
Definition: cktdefs.h:39
IFuid CKTnodName(CKTcircuit *ckt, int nodenum)
Definition: cktnodn.c:21
static int nodenum()