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

📄 com_setscale.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
#include <ngspice.h>#include <bool.h>#include <dvec.h>#include "com_setscale.h"#include "quote.h"#include "streams.h"#include "vectors.h"#include "plotting/plotting.h"#include "plotting/pvec.h"/* Set the default scale to the named vector.  If no vector named, * find and print the default scale.  */voidcom_setscale(wordlist *wl){    struct dvec *d;    char *s;    if (plot_cur) {	if (wl) {	    s = cp_unquote(wl->wl_word);	    d = vec_get(s);            if(s) tfree(s);/*DG to avoid the cp_unquote memory leak */	    if (d == NULL)		fprintf(cp_err, "Error: no such vector as %s.\n", 			wl->wl_word);	    else		plot_cur->pl_scale = d;	} else if (plot_cur->pl_scale) {	    pvec(plot_cur->pl_scale);	}    } else {	fprintf(cp_err, "Error: no current plot.\n");    }}

⌨️ 快捷键说明

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