Data Structures | |
| struct | node |
| struct | head |
Typedefs | |
| typedef struct node | Node |
| typedef struct head | Head |
| typedef Node ** | ListIterator |
| typedef Head * | List |
Functions | |
| List | newList () |
| void | freeList (List l) |
| void | insertList (char *item, List l) |
| int | getLengthList (List l) |
| ListIterator | newListIterator (List l) |
| char * | listIteratorNext (ListIterator li) |
| int | endOfList (ListIterator li) |
| typedef Node** ListIterator |
Iterator through a linked list. Operations on the iterator take care of advancing the pointers and checking for null pointers.
| int endOfList | ( | ListIterator | li | ) |
Check if iterator is at the end of the list.
| [in] | li | A List Iterator. |
| void freeList | ( | List | l | ) |
Free the memory for a list of nodes.
| [in,out] | l | A List to free. |
| int getLengthList | ( | List | l | ) |
Return the number of nodes in a list.
| [in] | l | A List |
| void insertList | ( | char * | item, | |
| List | l | |||
| ) |
Insert item at the head of List
| [in] | item | Pointer to a character string to store in the list |
| [in,out] | l | Add to this list |
| char* listIteratorNext | ( | ListIterator | li | ) |
Get the next character string stored in the List.
| [in,out] | li | A ListIterator. |
| List newList | ( | ) |
Create a new list.
| ListIterator newListIterator | ( | List | l | ) |
Create an iterator to traverse a list.
| [in] | l | A List to traverse |
1.7.0