Notifications
Clear all

A general purpose Linked list, Queue and Stack C library.

1 Posts
1 Users
0 Likes
1,379 Views
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
Topic starter  

I have released some code I wrote long ago. It's a memory collection library written in C.  It contains functions to create and manage Link lists, Stacks and Queues and there is also a tree functions as well, but I will be the first to say they were never extensively tested.  

The code can be found at:  https://github.com/jscottb/listque

Again, this code was written a long time ago but was done in a manner to allow the storage of ANY TYPE data.  I have been using this code since it's inception and most of it has been extensively tested discounting the Tree functions.  The Tree functions are noteworthy, in that they are not recursive and were written with limited memory systems in mind (and I hate recursion) 😉

The Linked list functions are the most used by me and tested. They have changed very little in 20+ years.  I wrote them initially to have one set of linked list code and not have a lot of repeating functions just for different lists and data types.  For uC use, one could #ifdef the parts out that are not needed to use less memory. i.e. You only need the linked lists, so you could put '#ifdef NOTNEEDED' around the Que, Stack and Tree functions.

I plan to release a C toolbox function library I have written soon as well.

Scott


   
Quote