I have this function in which i am trying to assign values to the members of the structure.
void Add(NodeDef **Head, char *Data){
ptrHead=(struct Node **)malloc(sizeof(struct Node));
(*Head)->Data=*(Data);
(*Head)->NextNode=NULL;
}
I am calling this fuction like that
for (i = 0; i < 5; i++)
AddToLinkedList( &Head, iData[i].name);
iData is member of a structure which stores data as strings (char iData[50]).
Now i am getting an error like
error: assignment to expression with array type
(*Head)->Data=*(Data);