📄 cpldel.c
字号:
/**********Copyright 1992 Regents of the University of California. All rightsreserved.Author: 1992 Charles Hough**********/#include "ngspice.h"#include "cpldefs.h"#include "sperror.h"#include "suffix.h"intCPLdelete(GENmodel *inModel, IFuid name, GENinstance **inst){ CPLmodel *model = (CPLmodel *)inModel; CPLinstance **fast = (CPLinstance **)inst; CPLinstance **prev = NULL; CPLinstance *here; for( ; model ; model = model->CPLnextModel) { prev = &(model->CPLinstances); for(here = *prev; here ; here = *prev) { if(here->CPLname == name || (fast && here==*fast) ) { *prev= here->CPLnextInstance; FREE(here); return(OK); } prev = &(here->CPLnextInstance); } } return(E_NODEV);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -