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.
producing a string of 16 'x's
[ Parent
| on HN ]
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.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.