Re:Massacring C Pointers
by caf on Tuesday June 26, 2018 @02:48AM
(#17398420)
You can avoid the need for setting the null terminator explicitly by using memcpy(str + slen, t, tlen + 1) as the second memcpy.
[ Parent
| on HN ]