I am wondering why i have to use "helper" pointer a to get the s return right value.
Why i cant do it directly with s?
Code:char *copyn(char *s, const char *t, size_t n){ char *a; a=s; while(*a!='\0') a++; for(; n>0; n--){ *a++ = *t++; } *a++='\0'; return s; }