📄 memscan.c
字号:
/* * linux/lib/string.c * * Copyright (C) 1991, 1992 Linus Torvalds */#include <sys/types.h>#include <string.h>#include <ctype.h>/* * find the first occurrence of byte 'c', or 1 past the area if none */#ifndef __HAVE_ARCH_MEMSCANvoid * memscan(void * addr, int c, size_t size){ unsigned char * p = (unsigned char *) addr; while (size) { if (*p == c) return (void *) p; p++; size--; } return (void *) p;}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -