list.c
来自「harvest是一个下载html网页得机器人」· C语言 代码 · 共 31 行
C
31 行
/* This is a generic function that adds lines to a list -** these lists hold file rules, index files, files to be** indexed, etc.*/#include "swish.h"#include "list.h"#include "mem.h"#include "string.h"struct swline *addswline(rp, line) struct swline *rp; char *line;{ struct swline *newnode; static struct swline *nodep; newnode = (struct swline *) emalloc(sizeof(struct swline)); newnode->line = (char *) mystrdup(line); newnode->next = NULL; if (rp == NULL) rp = newnode; else nodep->next = newnode; nodep = newnode; return rp;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?