News for hackers. Stuff that matters.
Re:The Sad State of C Strings by anon4 on Wednesday February 10, 2016 @04:32AM (#11071605)
As a bonus, this works with e.g.

  char buf[256]; buf[0] = 'x'; buf[1] = '\0';
  strcatm(buf, buf, buf, buf);
producing a string of 16 'x's
Re:The Sad State of C Strings by huhtenberg on Wednesday February 10, 2016 @05:05AM (#11071689)

  strcatm(..., NULL);
and it's 8 x/s, not 16. Also fix , to ; in the second for loop.
Re:The Sad State of C Strings by anon4 on Wednesday February 10, 2016 @05:16AM (#11071721)
strcatm is the convenience macro that adds a last NULL arg. And it's 16, because it doubles each time. Already fixed.
Re:The Sad State of C Strings by huhtenberg on Wednesday February 10, 2016 @07:13AM (#11072203)
strcatm - aye, missed that, but I must insist on 8.
Re:The Sad State of C Strings by anon4 on Wednesday February 10, 2016 @08:28AM (#11072548)
Right, 8. I miscounted it as 4 loops :)