Y
Hacker News
new
|
ask
|
show
|
jobs
by
sickill
5296 days ago
What would you suggest instead then? I'm not C programmer.
1 comments
burgerbrain
5296 days ago
Avoid the allocation entirely. Use writev for example (or just use multiple 'write's, if you don't care about it being atomic).
link
sickill
5296 days ago
Thx. Improved version in master:
https://github.com/sickill/stderred/blob/master/stderred.c
link