Add hexadecimal support w/ ft_itoa_base

This commit is contained in:
gbaconni
2022-04-15 00:15:26 +02:00
parent 55044bb017
commit cab84b5f28
6 changed files with 126 additions and 35 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/18 15:11:16 by gbaconni #+# #+# #
# Updated: 2022/04/13 23:03:45 by gbaconni ### lausanne.ch #
# Updated: 2022/04/15 00:01:26 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
#
@@ -44,6 +44,9 @@ RMFLAGS = -f
VALGRIND = valgrind
VALGRINDFLAGS = --quiet --leak-check=full --show-leak-kinds=all
ifeq ($(DEBUG), 1)
PREFIX += $(VALGRIND) $(VALGRINDFLAGS)
endif
NORMINETTE = norminette
NORMINETTEFLAGS = -o
@@ -76,28 +79,17 @@ fast:
@$(MAKE) re FAST=1
test: clean $(NAME)
@./$(NAME) "%c" C || true
@./$(NAME) "%s" "42 Lausanne" || true
@./$(NAME) "%d" 42 || true
@$(PREFIX) ./$(NAME) "%c" C || true
@$(PREFIX) ./$(NAME) "%s" "42 Lausanne" || true
@$(PREFIX) ./$(NAME) "%d" 42 || true
@$(PREFIX) ./$(NAME) "%x" 42 || true
@$(PREFIX) ./$(NAME) "%X" 42 || true
test2:
ifneq ($(DEBUG), 1)
test2: debug
@$(MAKE) test DEBUG=1
endif
test3:
ifneq ($(FAST), 1)
test3: fast
@$(MAKE) test FAST=1
endif
test4: clean $(NAME)
ifneq ($(DEBUG), 1)
@$(MAKE) test4 DEBUG=1
else
@$(VALGRIND) $(VALGRINDFLAGS) ./$(NAME) "%c" C || true
@$(VALGRIND) $(VALGRINDFLAGS) ./$(NAME) "%s" "42 Lausanne" || true
@$(VALGRIND) $(VALGRINDFLAGS) ./$(NAME) "%d" 42 || true
endif
update: config online pull