Jspice3
Main Page
Data Structures
Files
File List
Globals
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
21
CKTnodName
(ckt,
nodenum
)
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
}
cktdefs.h
sCKTnode::name
IFuid name
Definition:
cktdefs.h:31
CKTcircuit
Definition:
cktdefs.h:62
sCKTnode
Definition:
cktdefs.h:30
IFuid
GENERIC * IFuid
Definition:
ifsim.h:72
sCKTnode::next
struct sCKTnode * next
Definition:
cktdefs.h:43
sCKTnode::number
int number
Definition:
cktdefs.h:39
spice.h
cktext.h
CKTnodName
IFuid CKTnodName(CKTcircuit *ckt, int nodenum)
Definition:
cktnodn.c:21
nodenum
static int nodenum()
src
lib
ckt
cktnodn.c
Generated by
1.8.11