The expression *src refers to the first character in the string, not the whole string. To reassign src to point to a different string tgt, use src = tgt;.
The expression *src refers to the first character in the string, not the whole string. To reassign src to point to a different string tgt, use src = tgt;.