How to access to struct via pointer.

sergey volkovich sergey.volkovich99 at outlook.com
Sat Jul 17 11:30:06 UTC 2021


Hello.
I had next example C code
```c
#include <thread_definitions.h>

struct PROCESS_DATA {
        .... //thread attributes
        };

struct PROCESS_ENTRY{
      PROCESS_ENTRY* next; //must be betree entry
      PROCESS_ENTRY* preview;
   struct PROCESS_DATA process_store;
};

  PROCESS_ENTRY* current_process = kalloc(sizeof(PROCESS_DATA));
bool create_thread_data(){
    ....
    current_process->next = kalloc(sizeof(PROCESS_DATA)); //how to 
implement that stuff
    ....
}
```

can you say, how to rewrite them in d?


More information about the Digitalmars-d mailing list