dev: Added a ft_itoa_static function to avoid malloc'ing and free'ing every frame

This commit is contained in:
Theo Champion 2025-08-20 15:29:33 +02:00
parent e8fac75779
commit 9ec4a33fc8
3 changed files with 77 additions and 2 deletions

View file

@ -2,7 +2,8 @@ CC=cc
CFLAGS=-Wall -Wextra -Werror -g -c
SOURCEFILES=src/str/ft_atoi.c src/mem/ft_bzero.c src/mem/ft_calloc.c src/cond/ft_isalnum.c \
src/cond/ft_isalpha.c src/cond/ft_isascii.c src/cond/ft_isdigit.c \
src/cond/ft_isprint.c src/str/ft_itoa.c src/lst/ft_lstadd_back_bonus.c \
src/cond/ft_isprint.c src/str/ft_itoa.c src/str/ft_itoa_static.c \
src/lst/ft_lstadd_back_bonus.c \
src/lst/ft_lstadd_front_bonus.c src/lst/ft_lstclear_bonus.c \
src/lst/ft_lstdelone_bonus.c src/lst/ft_lstiter_bonus.c \
src/lst/ft_lstlast_bonus.c src/lst/ft_lstmap_bonus.c \