📄 tst_memchr.c
字号:
#include <string.h>
#include <stdio.h> /* for printf */
void tst_memchr (void) {
static char src1 [100] ="Search this string from the start";
void * c;
c = memchr (src1, 'g', sizeof (src1));
if (c == NULL)
printf ("'g' was not found in the buffer\n");
else
printf ("found 'g' in the buffer\n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -