mifdestroy.c

来自「支持数字元件仿真的SPICE插件」· C语言 代码 · 共 72 行

C
72
字号
/*============================================================================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 <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 + -
显示快捷键?