can I just add, you need to remember to add a
*dest=0; line after the while. You will need something similar in any of the other posts.
No with Arkm's algorithm you don't because it will also copy the null terminator.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,947 posts
since Aug 2005