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/my_itoa/my_itoa.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 rushs/tinyprintf/my_itoa/my_itoa.c (limited to 'rushs/tinyprintf/my_itoa/my_itoa.c') diff --git a/rushs/tinyprintf/my_itoa/my_itoa.c b/rushs/tinyprintf/my_itoa/my_itoa.c deleted file mode 100644 index cbb6f73..0000000 --- a/rushs/tinyprintf/my_itoa/my_itoa.c +++ /dev/null @@ -1,38 +0,0 @@ -#include "my_itoa.h" - -char *my_itoa(int value, char *s) -{ - if (value == 0) - { - s[0] = '0'; - s[1] = '\0'; - return s; - } - char *head = s; - if (value < 0) - { - s[0] = '-'; - s++; - value = -value; - } - - // count numbers - int t = value; - int n = 0; - while (t > 0) - { - t /= 10; - n++; - } - - // n = number count - s[n] = '\0'; - n--; - for (; n >= 0; n--) - { - s[n] = value % 10 + '0'; - value /= 10; - } - - return head; -} -- cgit v1.2.3