diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-16 21:27:23 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-16 21:27:23 +0200 |
commit | ca1713c01ba190e8b56b0e8e5e56e9d5640be4be (patch) | |
tree | 545997b85d13948b33ecdb95057cd8a1b4d19073 /src/b_h.c | |
parent | h builtin in progress (diff) | |
download | 42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.gz 42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.bz2 42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.xz 42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.zst 42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.zip |
h still in progress
Diffstat (limited to 'src/b_h.c')
-rw-r--r-- | src/b_h.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,7 @@ #include "s_struct.h" #include "u_utils.h" -static void b_print_history(const char arg[], t_msh *msh) +static void b_print_history(const char arg[], uint64_t max_hist, t_msh *msh) { char *prev_hist; char *tok; @@ -35,7 +35,7 @@ static void b_print_history(const char arg[], t_msh *msh) tok = ft_strtok(prev_hist, "\n"); while (tok != NULL) { - ft_printf("%-5u %s\n", i, tok); + ft_printf("%5u %s\n", i, tok); i++; tok = ft_strtok(NULL, "\n"); } |