Below is sample program to demonstrate how to manipulate linked list.
34 PJ_DECL_LIST_MEMBER(
struct my_node);
50 for (i=0; i<10; ++i) {
58 PJ_LOG(3,(
"list",
"value = %d", it->value));
63 for (i=0; i<10; ++i) {
Assertion macro pj_assert().
void pj_list_init(pj_list_type *node)
Definition: list.h:87
void pj_list_erase(pj_list_type *node)
int pj_list_empty(const pj_list_type *node)
Definition: list.h:101
void pj_list_insert_before(pj_list_type *pos, pj_list_type *node)
#define PJ_LOG(level, arg)
Definition: log.h:106
#define pj_assert(expr)
Definition: assert.h:48
Linked List data structure.
Definition: pjlib-samples/list.c:32