Hacker News new | ask | show | jobs
by sickill 5296 days ago
What would you suggest instead then? I'm not C programmer.
1 comments

Avoid the allocation entirely. Use writev for example (or just use multiple 'write's, if you don't care about it being atomic).