Import of the contiki-2.x development code from the SICS internal CVS server

This commit is contained in:
adamdunkels 2006-06-17 22:41:10 +00:00
commit c9e808d638
671 changed files with 95332 additions and 0 deletions

27
doc/example-list.c Normal file
View file

@ -0,0 +1,27 @@
#include "list.h"
struct example_list_struct {
struct *next;
int number;
};
LIST(example_list);
void
example_function(void)
{
struct example_list_struct *s;
struct example_list_struct element1, element2;
list_init(example_list);
list_add(example_list, &element1);
list_add(example_list, &element2);
for(s = list_head(example_list);
s != NULL;
s = s->next) {
printf("List element number %d\n", s->number);
}
}