|This article explains by example how to build a linked list.|
Please read it: Linked list, Nick Parlante
To build the list we use the function:
struct node* AppendNode (struct node **headRef, int num)
First, we initialize the headRef pointer (pointer to another pointer pointing to a structure node) and after it we call AppendNode(). Malloc() continue the process.
The length of the list is measured at the intermediate building stages using Length().
Some other bulding linked list functions also included at the project.
The C code The result
An empty Keil C ide project is included here, having the serial port configured at 19200 bauds.You can use it to add your C code under main().