I have a problem with acccessing a char ** in one of my struct.
uint64_t id;
struct timing timing;
//command *command;
uint32_t argc;
char ** argv;
} taskR;
i stock everything in my struct correctly but when it comes to reading it from a file i cant access the argv part whitout a "core dumped " alert (the other arguments work perfectly fine)
taskR stp;
uint64_t ip=stp.id;
read(i,&stp,sizeof(struct task));
struct timing ti;
ti=stp.timing;//all good
printf("%s",stp.argv[0]);//core dumped
Happy new year everyone :) ty for the answer !!