This repository contains C implementations of various sorting algorithms. The sorting algorithms are designed to work with arrays of integers and doubly linked lists.
- Introduction
- Sorting Algorithms
- How to Use
- File Descriptions
- Compilation
- Tests
- Contributing
- Authors
- License
This project implements sorting algorithms in C, focusing on both array and doubly linked list implementations. The goal is to provide clear and efficient implementations of common sorting algorithms.
- Bubble Sort: Sorts an array of integers in ascending order using the Bubble sort algorithm.
To use the sorting algorithms in your project, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/sorting_algorithms.git
- Include the necessary header file in your code:
#include "sort.h"
- Compile your code along with the sorting algorithm implementation files.
sort.h
: Header file containing function prototypes and the definition of thelistint_t
structure.
All files in this repository should be compiled on Ubuntu 20.04 LTS using gcc
with the following options:
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o your_executable_name