Could anyone spare some advice as to the function of that while statement at the bottom, esp. the "/0". Thanks.
#include <iostream.h>
int stringcopy(char *to, char *from);
int main()
{
char from[] = "";
cin>>from;
char to[sizeof from] = "";
stringcopy(to, from);
cout<<from<<to;
return 0;
}
int stringcopy(char *to, char *from);
{
while ( (*to = *from) != '\0' )
{
to++;
from++;
}
return 0;
}