Created
January 17, 2024 04:46
-
-
Save WarrenTheRabbit/7f411dd9dbb8513b0e207e879d27611d to your computer and use it in GitHub Desktop.
Header file for Holberton project 'Sorting algorithms & Big O'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SORT_H | |
#define SORT_H | |
/** | |
* struct listint_s - Doubly linked list node | |
* | |
* @n: Integer stored in the node | |
* @prev: Pointer to the previous element of the list | |
* @next: Pointer to the next element of the list | |
*/ | |
typedef struct listint_s | |
{ | |
const int n; | |
struct listint_s *prev; | |
struct listint_s *next; | |
} listint_t; | |
void print_array(const int *array, size_t size); | |
void print_list(const listint_t *list); | |
#endif /* SORT_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment