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