Oh using a for while loop. I missed that
entirely (thanks for rubbing it in mate).
Quote:
|
Do you see the point I am making?
|
No, I won't check for allocation failure and I didn't dealllocate yet. The point was taken I think.
Quote:
|
this is obviously a beginning level c/c++ question, in which strcpy is not an option.
|
Are you to decide? I disagree. These basics should be learned asap. Since many problems later arise from a lack of proper character handling routines. How often did we need to adress string handling issues here by now?