Hi
I'm trying to build a link list with the enclosed code.
could you please help me to create an "add function" to my struct (list) with 2 components (int Y & int X)
Code:typedef struct list { int Y; int X; struct list *next; }list; void add ( list *head, int number) { list *new_list; new_list=(list*)malloc(sizeof(list)); new_list ?? number } thanks Ilan



LinkBack URL
About LinkBacks



