📄 cktnames.c
字号:
/* * Copyright (c) 1988 Thomas L. Quarles */ /* *CKTnames(ckt) * output information on all circuit nodes/equations * */#include "prefix.h"#include <stdio.h>#include "CKTdefs.h"#include "IFsim.h"#ifndef CMS#include "IFerrmsgs.h"#else /* CMS */#include "IFerrmsg.h"#endif /* CMS */#include "util.h"#include "suffix.h"RCSID("CKTnames.c $Revision: 1.1 $ on $Date: 91/04/02 12:07:53 $")intCKTnames(ckt,numNames,nameList) register CKTcircuit *ckt; int *numNames; register IFuid **nameList;{ register CKTnode *here; register int i; *numNames = ckt->CKTmaxEqNum-1; *nameList = (IFuid *)MALLOC(*numNames * sizeof(IFuid )); if ((*nameList) == (IFuid *)NULL) return(E_NOMEM); i=0; for (here = ckt->CKTnodes->next; here; here = here->next) { *((*nameList)+i++) = here->name; } return(OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -