Reuse ft_isdigit and ft_strchr from libft

This commit is contained in:
gbaconni
2022-04-29 08:46:53 +02:00
parent 59977253fc
commit 38021fb98f
8 changed files with 114 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/18 15:11:16 by gbaconni #+# #+# #
# Updated: 2022/04/29 08:10:10 by gbaconni ### lausanne.ch #
# Updated: 2022/04/29 08:44:41 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
#
@@ -116,9 +116,15 @@ test: bonus
ifeq ($(KERNEL),Linux)
test2: leak
@$(MAKE) test LEAK=1 DEBUG=$(DEBUG) FAST=$(FAST)
test21: leak
@$(MAKE) test42 LEAK=1 DEBUG=$(DEBUG) FAST=$(FAST)
else
test2: debug
@$(MAKE) test DEBUG=1 LEAK=$(LEAKS) FAST=$(FAST)
test21: debug
@$(MAKE) test42 DEBUG=1 LEAK=$(LEAKS) FAST=$(FAST)
endif
test3: fast
@@ -131,7 +137,6 @@ test42: bonus
@$(PREFIX) ./$(NAME) "Preceding with blanks: %10d \n" 1977
@$(PREFIX) ./$(NAME) "Preceding with zeros: %010d \n" 1977
@$(PREFIX) ./$(NAME) "Some different radices: %d %x %#x\n" 100 100 100
@$(PREFIX) ./$(NAME) "Width trick: %*d \n" 5 10
watch: fclean
@read -p "cmd: " cmd; while :; do clear; date "+%F %T (every 2.0s)"; echo; sh -c "$${cmd} 2>&1" | tail -n 10 || true; sleep 2; done