📄 numddel.c
字号:
/**********Copyright 1992 Regents of the University of California. All rights reserved.Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group**********/#include "spice.h"#include <stdio.h>#include "util.h"#include "numddefs.h"#include "sperror.h"#include "suffix.h"intNUMDdelete(inModel, name, kill) GENmodel *inModel; IFuid name; GENinstance **kill;{ NUMDmodel *model = (NUMDmodel *) inModel; NUMDinstance **fast = (NUMDinstance **) kill; NUMDinstance **prev = NULL; NUMDinstance *inst; for (; model; model = model->NUMDnextModel) { prev = &(model->NUMDinstances); for (inst = *prev; inst; inst = *prev) { if (inst->NUMDname == name || (fast && inst == *fast)) { *prev = inst->NUMDnextInstance; FREE(inst); return (OK); } prev = &(inst->NUMDnextInstance); } } return (E_NODEV);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -