libslist
is a simple linked list library written in C that provides various operations for creating, manipulating, and managing linked lists.
- Create linked lists.
- Append, insert, and delete nodes.
- Search, count, and manipulate list items.
- Reverse, remove duplicates, and perform other list operations.
To compile and test the library, you'll need the Criterion testing framework. Make sure you have it installed on your system.
- Clone this repository:
git clone https://github.com/your-username/linked-list-library.git
cd linked-list-library
- Build the library:
make
This will compile the library and generate the static library (libslist_$(ARCH)-$(OS).a)
and dynamic library (libslist_$(ARCH)-(OS).so)
in the bin
directory.
-
Make sure you have the library built.
-
Run the tests:
make test
This will compile and run the tests from the tests
directory using the Criterion framework.
To use the linked list library in your own projects:
- Include the library header file
list.h
in your source code:
#include "list.h"
Link your project with the compiled static or dynamic library.
Refer to the documentation in the header file for information on available functions and their usage.
Contributions are welcome! If you find any issues or want to add new features or improvements, feel free to open a pull request.