📄 sgml.c
字号:
/* SGML generics *//* $Id: sgml.c,v 1.2 2004/09/24 00:44:59 jonas Exp $ */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <stdlib.h>#include <string.h>#include "elinks.h"#include "document/dom/navigator.h"#include "document/dom/node.h"#include "document/sgml/sgml.h"#include "util/error.h"#include "util/string.h"intsgml_info_strcmp(const void *key_, const void *node_){ struct dom_node *key = (struct dom_node *) key_; struct sgml_node_info *node = (struct sgml_node_info *) node_; int length = int_min(key->length, node->length); int string_diff = strncasecmp(key->string, node->string, length); int length_diff = key->length - node->length; /* If the lengths or strings don't match strncasecmp() does the job * else return which ever is bigger. */ return (!length_diff || string_diff) ? string_diff : length_diff;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -