| structures/lists-mutation.c - Funktionerne set_head og set_tail. | Lektion 12 - slide 27 : 36 Program 1 |
/* Change the data position of cell to new_head */
void set_head(cons_cell *cell, void *new_head){
cell->data = new_head;
}
/* Change the next position of cell to new_tail */
void set_tail(cons_cell *cell, cons_cell *new_tail){
cell->next = new_tail;
}