diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2019-10-30 17:05:31 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2019-10-30 17:05:31 +0100 |
commit | 3051df7c3e57d5645a78d87fa63ff1144fd8699a (patch) | |
tree | 5676fe8501f965cc9e62b8c25791ce1c9a04b0f4 /libft | |
parent | work work (diff) | |
download | 42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.gz 42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.bz2 42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.xz 42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.tar.zst 42-minishell-3051df7c3e57d5645a78d87fa63ff1144fd8699a.zip |
exit function works
Diffstat (limited to '')
-rw-r--r-- | libft/Makefile | 1 | ||||
-rw-r--r-- | libft/src/ft_itoa.c | 4 |
2 files changed, 3 insertions, 2 deletions
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 <stdlib.h> 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) |