From 6ddc7275f1d88f75a8d77d93af690b877325cc46 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 30 Sep 2020 17:25:33 +0200 Subject: Normed b_exit --- src/b_exit.c | 5 +---- src/b_exit.h | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/b_exit.c b/src/b_exit.c index cb8988f..3aef1c1 100644 --- a/src/b_exit.c +++ b/src/b_exit.c @@ -21,9 +21,7 @@ #include "s_struct.h" #include "u_utils.h" -uint8_t - b_exit(char *args[], - t_msh *msh) +uint8_t b_exit(char *args[], t_msh *msh) { uint8_t ret; const uint64_t argc = u_builtins_get_argc((const char**)args); @@ -36,7 +34,6 @@ uint8_t if (argc == 1) { ret = ft_atoi(args[0]); - /* TODO: non numeric args[0] */ } else ret = msh->ret; diff --git a/src/b_exit.h b/src/b_exit.h index 1c6ec05..47006cc 100644 --- a/src/b_exit.h +++ b/src/b_exit.h @@ -10,12 +10,12 @@ /* */ /* ************************************************************************** */ -#ifndef B_EXIT_H -#define B_EXIT_H +#ifndef FT_B_EXIT_H +# define FT_B_EXIT_H -#include +# include -#include "s_struct.h" +# include "s_struct.h" uint8_t b_exit(char *args[], t_msh *msh); -- cgit v1.2.3