⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 b4del.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/**** BSIM4.4.0  Released by Xuemei (Jane) Xi 03/04/2004 ****//********** * Copyright 2004 Regents of the University of California. All rights reserved. * File: b4del.c of BSIM4.4.0. * Author: 2000 Weidong Liu * Authors: 2001- Xuemei Xi, Jin He, Kanyu Cao, Mohan Dunga, Mansun Chan, Ali Niknejad, Chenming Hu. * Project Director: Prof. Chenming Hu. **********/#include "ngspice.h"#include "bsim4def.h"#include "sperror.h"#include "gendefs.h"#include "suffix.h"intBSIM4delete(inModel,name,inInst)GENmodel *inModel;IFuid name;GENinstance **inInst;{BSIM4instance **fast = (BSIM4instance**)inInst;BSIM4model *model = (BSIM4model*)inModel;BSIM4instance **prev = NULL;BSIM4instance *here;    for (; model ; model = model->BSIM4nextModel)     {    prev = &(model->BSIM4instances);         for (here = *prev; here ; here = *prev) 	 {    if (here->BSIM4name == name || (fast && here==*fast))	      {   *prev= here->BSIM4nextInstance;                  FREE(here);                  return(OK);              }              prev = &(here->BSIM4nextInstance);         }    }    return(E_NODEV);}

⌨️ 快捷键说明

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