Skip to content
/ Lists Public

Reusable library module for doubly linked lists

Notifications You must be signed in to change notification settings

bogdumi/Lists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lists

A reusable C library for module for doubly linked lists.

Install

A Makefile is included in the repo with the necessary flags, and it will work on Windows, MacOS and any Linux distro, so just type make in the console in the folder with the lists.c source file and lists.h header file.

Testing

Run the compiled program with no arguments to test the module with the in-built tests:

  • ./lists

Notes

  • The module is not thread safe.
  • The header is set up to store int values in lists, but item is used as a synonym for int everywhere, so that there is only one place where a change would need to be made to store some other type of items. This means the module can be used with different item types in different programs, but it is not truly generic. It cannot be used multiple times for different item types in the same program. There is no really satisfying way of making fully generic modules in C.

About

Reusable library module for doubly linked lists

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages