diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 21:11:02 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 21:11:02 +0100 |
commit | ea373d1d6b23447b72c3ba6504a9027df559599b (patch) | |
tree | db71addcffda4e130b7fd920b74ab7e3f0a2d70d /src/b_h.c | |
parent | Normed libft (diff) | |
download | 42-minishell-ea373d1d6b23447b72c3ba6504a9027df559599b.tar.gz 42-minishell-ea373d1d6b23447b72c3ba6504a9027df559599b.tar.bz2 42-minishell-ea373d1d6b23447b72c3ba6504a9027df559599b.tar.xz 42-minishell-ea373d1d6b23447b72c3ba6504a9027df559599b.tar.zst 42-minishell-ea373d1d6b23447b72c3ba6504a9027df559599b.zip |
Norming in progress
Diffstat (limited to 'src/b_h.c')
-rw-r--r-- | src/b_h.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -22,7 +22,7 @@ static unsigned long b_get_total_hist(t_msh *msh) { unsigned long total; - char *ptr; + char *ptr; total = 0; if (msh->prev_hist != NULL) @@ -45,7 +45,9 @@ static unsigned long b_get_total_hist(t_msh *msh) return (total); } -static unsigned int b_print_prev_history(unsigned long asked, unsigned long total, t_msh *msh) +static unsigned int b_print_prev_history(unsigned long asked, + unsigned long total, + t_msh *msh) { char *hist; char *tok; @@ -72,7 +74,9 @@ static unsigned int b_print_prev_history(unsigned long asked, unsigned long tota return (i); } -static void b_print_history(unsigned long asked, unsigned long total, t_msh *msh) +static void b_print_history(unsigned long asked, + unsigned long total, + t_msh *msh) { char *hist; char *tok; @@ -95,7 +99,7 @@ static void b_print_history(unsigned long asked, unsigned long total, t_msh *ms ft_memdel((void*)&hist); } -static t_bool b_check_numeric(const char arg[]) +static t_bool b_check_numeric(const char arg[]) { char *ptr; @@ -111,7 +115,7 @@ static t_bool b_check_numeric(const char arg[]) return (TRUE); } -unsigned char b_h(char *args[], t_msh *msh) +unsigned char b_h(char *args[], t_msh *msh) { const unsigned long argc = u_builtins_get_argc((const char **)args); |