Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

list.h File Reference


Detailed Description

Linked list manipulation routines.

Author:
Adam Dunkels <adam@sics.se>

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define LIST(name)
 Declare a linked list.


Typedefs

typedef void ** list_t
 The linked list type.


Functions

void list_init (list_t list)
 Initialize a list.

void * list_head (list_t list)
 Get a pointer to the first element of a list.

void * list_tail (list_t list)
 Get the tail of a list.

void * list_pop (list_t list)
 Remove the first object on a list.

void list_push (list_t list, void *item)
 Add an item to the start of the list.

void * list_chop (list_t list)
 Remove the last object on the list.

void list_add (list_t list, void *item)
 Add an item at the end of a list.

void list_remove (list_t list, void *item)
 Remove a specific element from a list.

void list_copy (list_t dest, list_t src)
 Duplicate a list.


Generated on Wed Jul 6 01:19:02 2005 for Contiki/ESB by doxygen 1.3.6