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

list.c File Reference


Detailed Description

Linked list library implementation.

Author:
Adam Dunkels <adam@sics.se>

Definition in file list.c.

#include "lib/list.h"

Go to the source code of this file.

Defines

#define NULL   0

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_copy (list_t dest, list_t src)
 Duplicate a list.
void * list_tail (list_t list)
 Get the tail of a list.
void list_add (list_t list, void *item)
 Add an item at the end of 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_pop (list_t list)
 Remove the first object on a list.
void list_remove (list_t list, void *item)
 Remove a specific element from a list.
int list_length (list_t list)
 Get the length of a list.
void list_insert (list_t list, void *previtem, void *newitem)
 Insert an item after a specified item on the list.


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4