这篇文章主要讲解了“C语言的strcpy函数如何使用”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“C语言的strcpy函数如何使用”吧!我们看看文档是怎样说的,如下strcpy文档Copy string字符串拷贝(字符串复制)Copies the C string pointed bysourceinto the array pointed bydestination, including the terminating null character (and stopping at that point).复制由字符指针source指向的C字符串到另一个字符数组中,该字符数组由字符指针destination指向To avoid 免费云主机域名overflows, the size of the array pointed bydestinationshall be long enough to contain the same C string assource(including the terminating null character), and should not overlap in memory withsource.为避免溢出,由destination指向的字符数组的大小需要足够长,足够包含住源字符串(包含’