From 3051df7c3e57d5645a78d87fa63ff1144fd8699a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 30 Oct 2019 17:05:31 +0100 Subject: exit function works --- libft/Makefile | 1 + libft/src/ft_itoa.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'libft') diff --git a/libft/Makefile b/libft/Makefile index 83c4b54..1b41ad7 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -86,6 +86,7 @@ NAME = libft.a MKDIR = mkdir -p RM = rm -rf + ${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS_DIR}${INCS} @if [ ! -a ${OBJS_DIR} ]; then \ ${MKDIR} ${OBJS_DIR}; \ diff --git a/libft/src/ft_itoa.c b/libft/src/ft_itoa.c index bf3c0c8..98f33f2 100644 --- a/libft/src/ft_itoa.c +++ b/libft/src/ft_itoa.c @@ -16,7 +16,7 @@ #include static uint8_t - ft_intlen(int n) + ft_intllen(int n) { uint8_t len; @@ -40,7 +40,7 @@ char unsigned int nb; uint8_t i; - i = ft_intlen(n) - 1; + i = ft_intllen(n) - 1; if (!(s = (char*)malloc((i + 2) * sizeof(char)))) return (NULL); if (!n) -- cgit v1.2.3