inplookmod.c

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

C
33
字号
/* * Copyright (c) 1985 Thomas L. Quarles */#include "prefix.h"#include <stdio.h>#include "INPdefs.h"#include "util.h"#include <string.h>#include "suffix.h"RCSID("INPlookMod.c $Revision: 1.1 $ on $Date: 91/04/02 11:56:57 $")extern INPmodel *modtab;/*ARGSUSED*/intINPlookMod(name)    char *name;{    register INPmodel **i;    for (i = &modtab;*i != (INPmodel *)NULL;i = &((*i)->INPnextModel)) {        if (strcmp((*i)->INPmodName,name) == 0) {            /* found the model in question - return true */            return(1);        }    }    /* didn't find model - return false */    return(0);}

⌨️ 快捷键说明

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