Skip to content

Melkor-1/libslist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libslist

License

libslist is a simple linked list library written in C that provides various operations for creating, manipulating, and managing linked lists.

Features

  • Create linked lists.
  • Append, insert, and delete nodes.
  • Search, count, and manipulate list items.
  • Reverse, remove duplicates, and perform other list operations.

Getting Started

Prerequisites

To compile and test the library, you'll need the Criterion testing framework. Make sure you have it installed on your system.

Building the Library

  1. Clone this repository:
git clone https://github.com/your-username/linked-list-library.git
cd linked-list-library
  1. 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.

Running Tests

  1. Make sure you have the library built.

  2. Run the tests:

make test

This will compile and run the tests from the tests directory using the Criterion framework.

Usage

To use the linked list library in your own projects:

  1. 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.

Contributing

Contributions are welcome! If you find any issues or want to add new features or improvements, feel free to open a pull request.

About

A Singly Linked-List Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published