News for hackers. Stuff that matters.
Re:Efficient string copying and concatenation in C by wkz on Thursday September 12, 2019 @03:28PM (#20955386)
I feel like one alternative is missing from the list:

  fp = fmemopen(buf, sizeof(buf), "w");

  fputs("one", fp);
  fputs("two", fp);
  fputs("three", fp);

  fclose(fp);
Not sure how it performs, but it reads pretty well IMHO.

There are no comments on this comment yet.