Deleting a node from linked list in C

前端 未结 6 1982
醉酒成梦
醉酒成梦 2020-12-07 04:05

My problem is deleting a node from linked list.

I have two structs :

typedef struct inner_list 
{
 int count;
 char word[100];
 inner_list*next;
}          


        
6条回答
  •  旧时难觅i
    2020-12-07 04:20

    Your if condition that is checking for the word, isn't it to supposed to be the following:

    if(strcmp(temp->word, num)==0)
    

    ?

提交回复
热议问题