Anonymous ID: 3097f1 Jan. 12, 2020, 5:32 a.m. No.7791075   🗄️.is 🔗kun

>>7791062

he passed a pointer, returns a pointer.

uses the passed pointer to modify the first string, and then returns what is also a pointer, so that would mean that it will set the return pointer to the one passed in. And so then you wouldn't need to do that copy at the return.

 

anon suggests that anyone manipulating strings in C use the CPP standard template library vector and container classes, especially the one named 'string' (It's been a while but I think there is such a class)