How to Fix this Segmentation fault in, I have tried Some alternatives but still it's not working.
strcpy(temp->label,'\0');
strcpy(temp->target,'\0');
How to Fix this Segmentation fault in, I have tried Some alternatives but still it's not working.
strcpy(temp->label,'\0');
strcpy(temp->target,'\0');
Copyright © 2021 Jogjafile Inc.
this is not correct
strcpy wants a pointer to a string, you mean
or even simpler
this assumes that temp->lable has memory assigned to it in some way
EDIT: this is the most efficient way