Improve main by implementing fmtsplit to split format into chunks and pass function pointer to compare ft_printf with printf

This commit is contained in:
gbaconni
2022-04-24 00:40:01 +02:00
parent 505f5d9912
commit d4fb946428
11 changed files with 236 additions and 271 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/18 15:11:16 by gbaconni #+# #+# #
# Updated: 2022/04/18 09:07:48 by gbaconni ### lausanne.ch #
# Updated: 2022/04/23 21:57:08 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
#
@@ -100,6 +100,7 @@ test: clean $(NAME)
@$(PREFIX) ./$(NAME) "%p" "\n" || true
@$(PREFIX) ./$(NAME) "Forty Two" "" || true
@$(PREFIX) ./$(NAME) "\t\r\n" "" || true
@$(PREFIX) ./$(NAME) "%1d" 42 || true
test2: leak
@$(MAKE) test LEAK=1
@@ -110,6 +111,9 @@ test3: debug
test4: fast
@$(MAKE) test FAST=1
test42: clean $(NAME)
@$(PREFIX) ./$(NAME) "Hello World %% %44s %d %c %x %p" "Lausanne" 42 C 66 "C" || true
doc:
@curl -s -L -z fr.subject.pdf -o fr.subject.pdf $(PDF_FR)
@curl -s -L -z en.subject.pdf -o en.subject.pdf $(PDF_EN)