Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace my_cstring {
- char * strcat(char * destination, const char * source) {
- auto answer = destination;
- while (*destination != 0) {
- ++destination;
- }
- while (*source != 0) {
- *destination = *source;
- ++destination; ++source;
- }
- return answer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement