📄 b4dest.c
字号:
/**** BSIM4.4.0 Released by Xuemei (Jane) Xi 03/04/2004 ****//********** * Copyright 2004 Regents of the University of California. All rights reserved. * File: b4dest.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 "suffix.h"voidBSIM4destroy(inModel)GENmodel **inModel;{BSIM4model **model = (BSIM4model**)inModel;BSIM4instance *here;BSIM4instance *prev = NULL;BSIM4model *mod = *model;BSIM4model *oldmod = NULL; for (; mod ; mod = mod->BSIM4nextModel) { if(oldmod) FREE(oldmod); oldmod = mod; prev = (BSIM4instance *)NULL; for (here = mod->BSIM4instances; here; here = here->BSIM4nextInstance) { if(prev) FREE(prev); prev = here; } if(prev) FREE(prev); } if(oldmod) FREE(oldmod); *model = NULL; return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -