com_strcmp.c
来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 29 行
C
29 行
#include <config.h>#include <ngspice.h>#include <bool.h>#include <wordlist.h>#include "com_strcmp.h"#include "quote.h"#include "variable.h"/* This is a truly evil thing */voidcom_strcmp(wordlist *wl){ char *var, *s1, *s2; int i; var = wl->wl_word; s1 = cp_unquote(wl->wl_next->wl_word); s2 = cp_unquote(wl->wl_next->wl_next->wl_word); i = strcmp(s1, s2); tfree(s1);/*DG cp_unquote memory leak*/ tfree(s2); cp_vset(var, VT_NUM, (char *) &i); return;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?