Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Chan – pure C implementation of Go channels. Parent comment
Just allocate a pointer on the stack, read into it, and then assign the value into the provided space:
void *msg_ptr; read(..., &msg_ptr, sizeof msg_ptr); *data = msg_ptr;
There are no comments on this comment yet.
Just allocate a pointer on the stack, read into it, and then assign the value into the provided space: