📄 com_strcmp.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -