NodeT *makeNode(int v) { NodeT *new = malloc(sizeof(NodeT)); assert(new != NULL); new->data = v; // initialise data new->next = NULL; // initialise link to next node return new; // return pointer to new node }