Skip to content

Instantly share code, notes, and snippets.

@WarrenTheRabbit
Created January 17, 2024 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WarrenTheRabbit/7f411dd9dbb8513b0e207e879d27611d to your computer and use it in GitHub Desktop.
Save WarrenTheRabbit/7f411dd9dbb8513b0e207e879d27611d to your computer and use it in GitHub Desktop.
Header file for Holberton project 'Sorting algorithms & Big O'
#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