This is a simple collections library written in C that implements:
- Singly Linked List
- Stack (LIFO)
- Queue (FIFO)
All operations are implemented without using malloc() or free(), making the library ideal for embedded or low-level systems where dynamic memory is restricted.
AddAt(index, list, newChain)– Insert a chain of nodes at a given indexListIndex(index, list)– Get the node at a given indexSizeOfList(list)– Get total number of nodesPrintList(list)– Print contents of the list
StackPush(stack, node)– Push node onto stackStackPop(stack)– Pop node from stackStackTop(stack)– Peek at top nodeStackEmpty(stack)– Check if stack is empty
Enqueue(queue, node)– Add node to the endDequeue(queue)– Remove node from frontFront(queue)– Peek at front nodeQueueEmpty(queue)– Check if queue is empty