Thanks for your answers ;)
I replaced the pointers in parent_t with values and the code works.
If I understand correctly, it didn't work because no memory was allocated for the child_t...
Type: Posts; User: leGrandNono
Thanks for your answers ;)
I replaced the pointers in parent_t with values and the code works.
If I understand correctly, it didn't work because no memory was allocated for the child_t...
I try to fill the parent structure with a memcpy. I work on embedded system (with Contiki OS). So I try to avoid using a malloc because I read that it is not recommended.
I test the code on my...