Creating a tail and head in a list by value in C -


i want create list in c head , tail not pointers, nodes value. can done?

i want use head , tail empty frame put list between. know how create pointers , want know because realise don't know how alone.

struct list{node head, node tail}; struct node{struct node* next, struct node* prev, void* data}; 

the main advantage of list dummy head , tail (the way presented here) have no special cases in list functions (insert, remove, ... etc). head , tail pointers make take care of special cases in each function.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -