node *insertPlaceOrder(node *head, char *firstName, char *lastName, int day, int month,
int year, char *birthPlace) {
//CODE
return head;
}
node *insertToList(node (*(*order))(node*, char*, char*, int, int, int, char*), node *head,
char *firstName, char *lastName, int day, int month, int year, char *birthPlace) {
return (*order)(head, firstName, lastName, day, month, year, birthPlace);
}
When I debug this code, the compiler gives me the following error:
incompatible types when returning type 'node {aka struct node}' but 'node * {aka struct node *}' was expected.
How can I get the insertToList() function to return the pointer to a struct node that the function insertPlaceOrder() returns?