cktnum2n.c

来自「linux平台下类似著名的电路板作图软件 Spice的源代码」· C语言 代码 · 共 35 行

C
35
字号
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Thomas L. Quarles**********//* */    /* CKTnum2nod     *  find the given node given its name and return the node pointer     */#include "spice.h"#include <stdio.h>#include "ifsim.h"#include "sperror.h"#include "cktdefs.h"#include "suffix.h"/* ARGSUSED */CKTnode *CKTnum2nod(ckt,node)    CKTcircuit *ckt;    int node;{    register CKTnode *here;    for (here = ((CKTcircuit *)ckt)->CKTnodes; here; here = here->next)  {        if(here->number == node) {            return(here);        }    }    return((CKTnode *)NULL);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?