|
C Fundamentals
Algorithms · data structures · cryptography · systems — pure C11, zero deps
|
Linked-list CLI demo. More...
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| static void | print_list (const linked_list_t *list, const char *label) |
Linked-list CLI demo.
Reads numbers from argv, builds a list (push_back), prints it, finds the first arg, reverses, prints again. Demonstrates all the core ops.
Definition in file data_structures/linked_list/main.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 22 of file data_structures/linked_list/main.c.
References ll_create(), ll_destroy(), ll_find(), LL_NOT_FOUND, ll_push_back(), ll_reverse(), and print_list().
|
static |
Definition at line 13 of file data_structures/linked_list/main.c.
References linked_list_t::head, and ll_size().
Referenced by main().