各位来帮我看一下这个程序的错误,多谢了
#include<stdio.h>#include<assert.h>
void main()
{
char *strcpy(char*, char *);
char *s1="string";
char *s2;
strcpy(s2,s1);
printf("%s\n",s2);
}
char *strcpy(char *to, char *from)
{
char *address;
assert((to!=NULL)&&(from!=NULL));
address=to;
while(*from++!='\0')
{
*to++=*from++;
}
*to='\0';
return address;
}
编译一直无法通过,