summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 17:25:33 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 17:25:33 +0200
commit6ddc7275f1d88f75a8d77d93af690b877325cc46 (patch)
treec66d6809346e598be3d2a001078676e8e33a7a3e /src
parentNormed b_env (diff)
download42-minishell-6ddc7275f1d88f75a8d77d93af690b877325cc46.tar.gz
42-minishell-6ddc7275f1d88f75a8d77d93af690b877325cc46.tar.bz2
42-minishell-6ddc7275f1d88f75a8d77d93af690b877325cc46.tar.xz
42-minishell-6ddc7275f1d88f75a8d77d93af690b877325cc46.tar.zst
42-minishell-6ddc7275f1d88f75a8d77d93af690b877325cc46.zip
Normed b_exit
Diffstat (limited to '')
-rw-r--r--src/b_exit.c5
-rw-r--r--src/b_exit.h8
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 <stdint.h>
+# include <stdint.h>
-#include "s_struct.h"
+# include "s_struct.h"
uint8_t b_exit(char *args[], t_msh *msh);