mifdestr.c
来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 73 行
C
73 行
/*============================================================================FILE MIFdestroy.cMEMBER OF process XSPICECopyright 1991Georgia Tech Research CorporationAtlanta, Georgia 30332All Rights ReservedPROJECT A-8503AUTHORS 9/12/91 Bill KuhnMODIFICATIONS <date> <person name> <nature of modifications>SUMMARY This file contains a function that deletes all models of a particular device (code model) type from the circuit description structures.INTERFACES MIFdestroy()REFERENCED FILES None.NON-STANDARD FEATURES None.============================================================================*//* #include "prefix.h" */#include "ngspice.h"#include <stdio.h>#include "mifproto.h"/* #include "suffix.h" *//*MIFdestroyThis function deletes all models and all instances of a specifieddevice type. It traverses the linked list of model structuresfor that type and calls MIFmDelete on each model.*/void MIFdestroy( GENmodel **inModel) /* The head of the list of models to delete */{ /* Free all models of this device type by removing */ /* models from the head of the linked list until */ /* the head is null */ while(*inModel) { MIFmDelete(inModel, (*inModel)->GENmodName, *inModel); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?