I had a doubly linked list capable of holding characters in each node. This is what I do to input characters to each node.
printf("Enter string of characters for the list: ");
scanf("%s",s);
for(i=0;s[i]!='\0';i++)
Insert(s[i],&Header1);
Now i wish to modify the list to store words in each node.The input provided by the user is a sentence. How do i make sure each word(separated by space) gets into a node of the list?
NOTE: You will have to pass
node_valueby value into your list, otherwise all your values will be the same reference!