Quote:Original post by xeddiex If you're using C, you would use strcpy and freinds.
You would never copy an array of this type with strcpy cause you would end up copying part of the array - up to the 0, the correct way to copy an char array would be to use memcpy. Friends are a C++ keyword.
I apologise... I typed that work so I guess the friend keyword was going through my mind.
There was nothing to indicate that the OP was using C++ and I was responding to the C strcpy comment. I do agree that if coding in C++ you would use std::copy
Edit: Oops... :( He would have been using C++ (the // gives it away) It's the little things you miss :P