So from your insert function:
newO = (TABLE*)malloc(sizeof(TABLE));
newO->tableno = tablenum;
newO->priority = prio;
strcpy(newO->orders->foodname, foodname);
newO->orders->quantity = qty;
...
Type: Posts; User: tabstop
So from your insert function:
newO = (TABLE*)malloc(sizeof(TABLE));
newO->tableno = tablenum;
newO->priority = prio;
strcpy(newO->orders->foodname, foodname);
newO->orders->quantity = qty;
...