📄 jfet2del.c
字号:
/**********Based on jfetdel.cCopyright 1990 Regents of the University of California. All rights reserved.Author: 1985 Thomas L. QuarlesModified to jfet2 for PS model definition ( Anthony E. Parker ) Copyright 1994 Macquarie University, Sydney Australia.**********/#include "ngspice.h"#include "jfet2defs.h"#include "sperror.h"#include "suffix.h"intJFET2delete(GENmodel *inModel, IFuid name, GENinstance **inst){ JFET2model *model = (JFET2model*)inModel; JFET2instance **fast = (JFET2instance**)inst; JFET2instance **prev = NULL; JFET2instance *here; for( ; model ; model = model->JFET2nextModel) { prev = &(model->JFET2instances); for(here = *prev; here ; here = *prev) { if(here->JFET2name == name || (fast && here==*fast) ) { *prev= here->JFET2nextInstance; FREE(here); return(OK); } prev = &(here->JFET2nextInstance); } } return(E_NODEV);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -