Hi.
Im learning c++ through bjarne stroustrup's book and in one of the exercise he offers he asks to remake some of the functions taken from <cstring> (strlen, strcpy and strcmp)

strlen is done.
strcpy is almost done but I do have one question about it..

Ive made it so far but it not the same.

I can copy a string using this form :

temp=copy(temp, juju);

Of course id like to use the same form as strcpy.. :

copy(temp,juju);

any ideas?

here is my code so far..

Code:
int main()
{
      char* juju;
      cin >> juju; 
      cout << length(juju) << endl;     //length is the same as strlen
      char* temp = "0";
      temp=copy(temp, juju);
      cout << temp << endl;
      return 0;
}

char* copy(char* to , char* from)
{
      to = from;
      return to;
}
thx
Luigi