From 73c2b00a10c5786ddeeacc915e233fd4df1c9321 Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Sat, 11 Oct 2025 22:19:00 +0200 Subject: fix: evalexpr & tinyprintf contenaient toute la piscine --- rushs/evalexpr/bubble_sort/bubble_sort.c | 25 ------------------------- rushs/evalexpr/bubble_sort/bubble_sort.h | 8 -------- 2 files changed, 33 deletions(-) delete mode 100644 rushs/evalexpr/bubble_sort/bubble_sort.c delete mode 100644 rushs/evalexpr/bubble_sort/bubble_sort.h (limited to 'rushs/evalexpr/bubble_sort') diff --git a/rushs/evalexpr/bubble_sort/bubble_sort.c b/rushs/evalexpr/bubble_sort/bubble_sort.c deleted file mode 100644 index 13d2ba3..0000000 --- a/rushs/evalexpr/bubble_sort/bubble_sort.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "bubble_sort.h" - -void bubble_sort(int array[], size_t size) -{ - if (!array || size == 0) - { - return; - } - - int mod; - do - { - mod = 0; - for (size_t i = 0; i < size - 1; i++) - { - if (array[i] > array[i + 1]) - { - mod = 1; - int tmp = array[i]; - array[i] = array[i + 1]; - array[i + 1] = tmp; - } - } - } while (mod); -} diff --git a/rushs/evalexpr/bubble_sort/bubble_sort.h b/rushs/evalexpr/bubble_sort/bubble_sort.h deleted file mode 100644 index a33d531..0000000 --- a/rushs/evalexpr/bubble_sort/bubble_sort.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef BUBBLE_SORT_H -#define BUBBLE_SORT_H - -#include - -void bubble_sort(int array[], size_t size); - -#endif /* !BUBBLE_SORT_H */ -- cgit v1.2.3