This repository contains a generic singly linked list C library capable of generating both static and dynamic libraries.
-
Insertion:
- At the beginning
- At the end
- At any given position
-
Deletion:
- Front node
- Last node
- Delete a node specified by the position
-
Manipulation:
- Reverse the list
- Print the list
- Search for specific data in the list using application-specific logic
- Sort the list in ascending order using application-specific logic
- Determine the length of the list
- Check if the list is empty
This repository follows the following directory structure:
src/
: Contains the source code for the singly linked list library.examples/
: Contains sample application source code.
To utilize the library in your application, clone the repository:
git clone git@github.com:deepakraparti/singly_linked_list.git
The sample application demonstrates the usage of the singly linked list library. You can explore it further in the examples directory. Generate the sample application and libraries using make.
cd singly_linked_list
make
./bin/sample_application
The sample application will be placed in the bin directory, and the generated libraries can be found in the lib folder.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This repository is licensed under the MIT License. See the LICENSE file for details.