cktnum2nod.c

来自「支持数字元件仿真的SPICE插件」· C语言 代码 · 共 33 行

C
33
字号
/* * Copyright (c) 1985 Thomas L. Quarles */    /* CKTnum2nod     *  find the given node given its name and return the node pointer     */#include "prefix.h"#include <stdio.h>#include "IFsim.h"#include "SPerror.h"#include "CKTdefs.h"#include "suffix.h"RCSID("CKTnum2nod.c $Revision: 1.1 $ on $Date: 91/04/02 12:08:01 $")/* 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 + -
显示快捷键?