cktnodname.c

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

C
34
字号
/* * Copyright (c) 1985 Thomas L. Quarles */    /*     *CKTnodName(ckt)     *  output information on all circuit nodes/equations     *     */#include "prefix.h"#include <stdio.h>#include "CKTdefs.h"#include "suffix.h"RCSID("CKTnodName.c $Revision: 1.1 $ on $Date: 91/04/02 12:08:00 $")IFuidCKTnodName(ckt,nodenum)    CKTcircuit *ckt;    register int nodenum;{    register 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");}

⌨️ 快捷键说明

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