c copy
/*copy函数:将from复制到to,这里嘉定to足够大*/ void copy(char to[],char from[]) { int i; i=0; while((to[i]=from[i]) !='\0') { ++i } }
代码来自:C程序设计语言