⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inplist.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Thomas L. Quarles**********//* */    /* INPlist(file,deck,type)     *  provide an input listing on the specified file of the given     *  card deck.  The listing should be of either PHYSICAL or LOGICAL     *  lines as specified by the type parameter.     */#include "ngspice.h"#include <stdio.h>#include "inpdefs.h"#include "inp.h"void INPlist(FILE * file, card * deck, int type){    card *here;    card *there;    if (type == LOGICAL) {	for (here = deck; here != NULL; here = here->nextcard) {	    fprintf(file, "%6d : %s\n", here->linenum, here->line);	    if (here->error != (char *) NULL) {		fprintf(file, "%s", here->error);	    }	}    } else if (type == PHYSICAL) {	for (here = deck; here != NULL; here = here->nextcard) {	    if (here->actualLine == (card *) NULL) {		fprintf(file, "%6d : %s\n", here->linenum, here->line);		if (here->error != (char *) NULL) {		    fprintf(file, "%s", here->error);		}	    } else {		for (there = here->actualLine; there != NULL;		     there = there->nextcard) {		    fprintf(file, "%6d : %s\n", there->linenum,			    there->line);		    if (there->error != (char *) NULL) {			fprintf(file, "%s", there->error);		    }		}	    }	}    }}

⌨️ 快捷键说明

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