I tried to implement the strcat by myself, and I found the strcat implementation from Wiki like this......but when I use it, there is segmentation fault.
What\'s wro
the code is okay.
Looks like you have a problem in the calling code.
Did you remember to allocate enough memory for the target string?