How to access to struct via pointer.
dkorpel at gmail.com
Sat Jul 17 11:35:51 UTC 2021
On Saturday, 17 July 2021 at 11:30:06 UTC, sergey volkovich wrote:
> current_process->next = kalloc(sizeof(PROCESS_DATA)); //how
> to implement that stuff
A literal translation would be:
current_process.next = cast(PROCESS_ENTRY*)
Though using `PROCESS_DATA.sizeof` for a pointer to a larger
structure `PROCESS_ENTRY` looks very sketch, watch that the
original C code is correct.
More information about the Digitalmars-d