Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. namespace my_cstring {
  2. char * strcat(char * destination, const char * source) {
  3. char * destcopy = destination;
  4. while (*destination != '\0') {
  5. destination++;
  6. }
  7. while (*source != '\0') {
  8. *destination = *source;
  9. destination++;
  10. source++;
  11. }
  12. *destination = *source;
  13. return destcopy;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement