strtest.c

来自「arm ads1.2 with crack.rar」· C语言 代码 · 共 17 行

C
17
字号
#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 + =
减小字号Ctrl + -
显示快捷键?