void cpy(char *s, char *t) {
while((*s = *t) != '\0') {
s++;
t++;
}
}
void main() {
char *x;
char *y;
x="abc";
y="zzz";
cpy(x,y);
}
what it wrong with this function? is the part *s=*t wrong? always says "Access violation writing location"...