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.
33 lines
648 B
33 lines
648 B
/**********
|
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
|
Author: 1985 Thomas L. Quarles
|
|
**********/
|
|
/*
|
|
*/
|
|
|
|
/* CKTfndNode
|
|
* find the given node given its name and return the node pointer
|
|
*/
|
|
|
|
#include "ngspice.h"
|
|
#include <stdio.h>
|
|
#include "ifsim.h"
|
|
#include "sperror.h"
|
|
#include "cktdefs.h"
|
|
|
|
|
|
|
|
/* ARGSUSED */
|
|
int
|
|
CKTfndNode(void *ckt, void **node, IFuid name)
|
|
{
|
|
CKTnode *here;
|
|
|
|
for (here = ((CKTcircuit *)ckt)->CKTnodes; here; here = here->next) {
|
|
if(here->name == name) {
|
|
if(node) *node = (char *)here;
|
|
return(OK);
|
|
}
|
|
}
|
|
return(E_NOTFOUND);
|
|
}
|