📄 strtest.c
字号:
#include <stdio.h>
extern void strcopy(char *d, const char *s);
int main()
{ const char *srcstr = "First string - source";
char dststr[] = "Second string - destination";
/* dststr is an array since we're going to change it */
printf("Before copying:\n");
printf(" '%s'\n '%s'\n",srcstr,dststr);
strcopy(dststr,srcstr);
printf("After copying:\n");
printf(" '%s'\n '%s'\n",srcstr,dststr);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -