xmemrchr.c
来自「一个C语言写的快速贝叶斯垃圾邮件过滤工具」· C语言 代码 · 共 23 行
C
23 行
/* (C) 2003 by David Relson, redistributable according to the terms * of the GNU General Public License, v2. * * $Id: xmemrchr.c,v 1.3 2006/07/08 15:25:59 m-a Exp $ * */#include "config.h"#include <string.h>#include "xmemrchr.h"void *xmemrchr(void *v, byte b, size_t len) { byte *s = v; byte *e = s + len; byte *a = NULL; while (s < e) { if (*s == b) a = s; s += 1; } return a;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?