Comment by aidenn0
6 months ago
Was:
s = sdscat(s,"Some more data");
Chosen over
stscat(&s, "Some more data");
For performance reasons, or something else?
6 months ago
Was:
s = sdscat(s,"Some more data");
Chosen over
stscat(&s, "Some more data");
For performance reasons, or something else?
I think it makes it obvious that the string 's' will be mutated.
The ampersand implies that a value will be written to to me (though it's slightly more complicated because many ABIs are inefficient with structs passed-by-value so it's occasionally used for efficiency there as well).