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

📄 com_echo.c

📁 ngspice又一个电子CAD仿真软件代码.功能更全
💻 C
字号:
/************** com_echo.c* $Id: com_echo.c,v 1.3 2005/05/30 20:28:30 sjborley Exp $************/#include <config.h>#include <ngspice.h>#include <wordlist.h>#include <bool.h>#include "com_echo.h"#include "quote.h"#include "streams.h"voidcom_echo(wordlist *wlist){   char*copyword;    bool nl = TRUE;    if (wlist && eq(wlist->wl_word, "-n")) {        wlist = wlist->wl_next;        nl = FALSE;    }    while (wlist) {     /*   fputs(cp_unquote(wlist->wl_word), cp_out); very bad the string allocated by cp_unquote could not be freed: memory leak*/          copyword=cp_unquote(wlist->wl_word);          fputs(copyword, cp_out);          tfree(copyword);        if (wlist->wl_next)            fputs(" ", cp_out);        wlist = wlist->wl_next;    }    if (nl)        fputs("\n", cp_out);}

⌨️ 快捷键说明

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