com_xgraph.c

来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 42 行

C
42
字号
#include <stddef.h>#include <ngspice.h>#include <bool.h>#include <wordlist.h>#include "plotting/plotit.h"#include "com_xgraph.h"/* xgraph file plotargs */voidcom_xgraph(wordlist *wl){    char *fname;    bool tempf = FALSE;    if (wl) {        fname = wl->wl_word;        wl = wl->wl_next;    }    if (!wl) {	return;    }    if (cieq(fname, "temp") || cieq(fname, "tmp")) {        fname = smktemp("xg");        tempf = TRUE;    }    (void) plotit(wl, fname, "xgraph");#if 0    /* Leave temp file sitting around so xgraph can grab it from       background. */    if (tempf)        (void) unlink(fname);#endif    return;}

⌨️ 快捷键说明

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