Contiki-NG
Loading...
Searching...
No Matches
list.c File Reference

Linked list library implementation. More...

#include "contiki.h"
#include "lib/list.h"
#include <string.h>

Go to the source code of this file.

Functions

void * list_tail (const_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, const void *item)
 Remove a specific element from a list.
 
int list_length (const_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.
 
bool list_contains (const_list_t list, const void *item)
 Check if the list contains an item.
 

Detailed Description

Linked list library implementation.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Definition in file list.c.