Ordered Linked List
The list is ordered from greater to less.
To create a list use the insert function:
struct node *list = NULL;
list = insert(list, 15); // 15 is an example of id
list = insert(list, 3);
list = insert(list, 6);
Functions to manipulate the list:
Function used to call create_node() and insert_in_order() functions.
Allocates memory for the node and the int id.
Insert a node in greater to less order.
Prints the ids of the list.
Search for a node containing the id given.
Delete the linked list.
$ gcc main.c -o main
$ ./main