4 ms·
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
by anon4 11y ago
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
- huhtenberg 11y agostrcatm(..., NULL); and it's 8 x/s, not 16. Also fix , to ; in the second for loop.
- anon4 11y agostrcatm is the convenience macro that adds a last NULL arg. And it's 16, because it doubles each time. Already fixed.
- huhtenberg 11y agostrcatm - aye, missed that, but I must insist on 8.
- anon4 11y agoRight, 8. I miscounted it as 4 loops :)