int insert(Field *list, Field *f){
Field *p = list;
Field *c = list;
f->next = NULL;
p->next = f;
}
F is the node i want to insert, list is the list i want to insert it too. Im having endless troubles doing this, i can do it with global variables, but not with pointers to the list. If someone could help i really need it
Field *p = list;
Field *c = list;
f->next = NULL;
p->next = f;
}
F is the node i want to insert, list is the list i want to insert it too. Im having endless troubles doing this, i can do it with global variables, but not with pointers to the list. If someone could help i really need it