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