Site Tools


linked-list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linked-list [June 13, 2026 at 03:13] – created - external edit 127.0.0.1linked-list [August 22, 2026 at 15:22] (current) – external edit 127.0.0.1
Line 28: Line 28:
 | Search | O(n) | | Search | O(n) |
  
 +## Element
 +```c
 +typedef struct list_node list_node_t;
 +struct list_node {
 +    list_node_t *ln_prev;
 +    list_node_t *ln_next;
 +    void *ln_data;
 +};
 +```
 +
 +## Structure
 +
 +```c
 +typedef struct {
 +    node_t *l_head;
 +    node_t *l_tail;
 +} list_t;
 +```
 +
 +## Create
 +## Destroy
 +## Append
 +## Prepend
linked-list.1781320400.md.gz · Last modified: by 127.0.0.1