I've had problems storing elements to linked list, so here is a part of my code; 


typedef struct link_node{
char data[10],mark1[10],mark2[10];
struct link_node *link;
struct link_node *prev;
}LINK_NODE;

.
.
.

for(int i=0;i< 3;i++){
temp=tail;
tail->link=(LINK_NODE *)malloc(sizeof(LINK_NODE));
tail=tail->link;
tail->link=NULL;
strcpy(head->data,store[0][0]);
tail->prev=temp;
}



and the data from the array is from what I've saved from performing a code that takes it from a txt file.


void read(char store[][8][10],int *check){
     FILE *fptr;
     //«Å§iÅܼƠ
     char ch[50],*get;  
     int i=0,j=0;
     fptr=fopen("test.txt","r");
     
     if(fptr!=NULL){
        while((fscanf(fptr,"%s",ch))!=EOF){  
           *check+=1;
           get=strtok(ch," ,");
           while(get!=NULL){  
              strcpy(store[i][j],get); 
              get=strtok(NULL," ,;") ;
              j++; 
           } i++;
             j=0; 
        }
     } else {
        printf("Fail to open!");
     }
     fclose(fptr);
}

the only problem is when I'm copying it from array to struct