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/tinyprintf/str_revert/str_revert.c | 25 ------------------------- rushs/tinyprintf/str_revert/str_revert.h | 6 ------ 2 files changed, 31 deletions(-) delete mode 100644 rushs/tinyprintf/str_revert/str_revert.c delete mode 100644 rushs/tinyprintf/str_revert/str_revert.h (limited to 'rushs/tinyprintf/str_revert') diff --git a/rushs/tinyprintf/str_revert/str_revert.c b/rushs/tinyprintf/str_revert/str_revert.c deleted file mode 100644 index 31f7f3d..0000000 --- a/rushs/tinyprintf/str_revert/str_revert.c +++ /dev/null @@ -1,25 +0,0 @@ -#include "str_revert.h" - -#include - -void str_revert(char str[]) -{ - if (*str == '\0') - { - return; - } - - size_t len = 0; - for (; str[len]; len++) - { - continue; - } - len--; - - for (size_t i = 0; i <= len / 2; i++) - { - char tmp = str[i]; - str[i] = str[len - i]; - str[len - i] = tmp; - } -} diff --git a/rushs/tinyprintf/str_revert/str_revert.h b/rushs/tinyprintf/str_revert/str_revert.h deleted file mode 100644 index daa23d4..0000000 --- a/rushs/tinyprintf/str_revert/str_revert.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef STR_REVERT_H -#define STR_REVERT_H - -void str_revert(char str[]); - -#endif /* ! STR_REVERT_H */ -- cgit v1.2.3