You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
612 B

/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Thomas L. Quarles
**********/
/*
*/
/*
*CKTnodName(ckt)
* output information on all circuit nodes/equations
*
*/
#include "ngspice/ngspice.h"
#include "ngspice/cktdefs.h"
IFuid
CKTnodName(CKTcircuit *ckt, int nodenum)
{
CKTnode *here;
for(here = ckt->CKTnodes;here; here = here->next) {
if(here->number == nodenum) {
/* found it */
return(here->name);
}
}
/* doesn't exist - do something */
return("UNKNOWN NODE");
}