diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-12-15 17:24:53 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-12-15 17:24:53 +0100 |
commit | 9ae8f935e955a9cc3ce461071e8d5bf9b227b891 (patch) | |
tree | bf1e3fef47cb398ed2a60110a708a7d32b538067 | |
parent | norm tobecontinued (diff) | |
download | 42-minishell-9ae8f935e955a9cc3ce461071e8d5bf9b227b891.tar.gz 42-minishell-9ae8f935e955a9cc3ce461071e8d5bf9b227b891.tar.bz2 42-minishell-9ae8f935e955a9cc3ce461071e8d5bf9b227b891.tar.xz 42-minishell-9ae8f935e955a9cc3ce461071e8d5bf9b227b891.tar.zst 42-minishell-9ae8f935e955a9cc3ce461071e8d5bf9b227b891.zip |
norm tobecontinued2
-rw-r--r-- | src/c_init.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/c_init.c b/src/c_init.c index 0994e5d..a8ec6ee 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -11,12 +11,12 @@ /* ************************************************************************** */ #include <unistd.h> -#include <stdlib.h> #include <libft.h> #include <signal.h> #include <string.h> #include <term.h> +#include "b_exit.h" #include "c_ctrls.h" #include "c_init.h" #include "c_keys.h" @@ -24,14 +24,10 @@ #include "c_input.h" #include "c_utils.h" #include "d_define.h" -#include "b_exit.h" +#include "m_prompt.h" #include "s_struct.h" #include "s_com.h" #include "s_line.h" -#include "s_destroy.h" -#include "m_prompt.h" -#include "m_loop.h" -#include "u_utils.h" short c_set_term_raw(char mode) @@ -141,7 +137,7 @@ static char char *ptr; if (*line == NULL) - if (!(*line = calloc(1, sizeof(char)))) + if (!(*line = ft_calloc(1, sizeof(char)))) return (NULL); if (ft_isprint(buf[0])) c_add_char(line, buf, tcaps); |