diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 17:23:50 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 17:23:50 +0200 |
commit | cb7738a3da0ac11ed61e7fa17b214616f985b632 (patch) | |
tree | cbc2b298738ffe2c33cb60d5c52a3d46b461be8e /src | |
parent | Normed b_echo (diff) | |
download | 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.gz 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.bz2 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.xz 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.zst 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.zip |
Normed b_env
Diffstat (limited to 'src')
-rw-r--r-- | src/b_env.c | 6 | ||||
-rw-r--r-- | src/b_env.h | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/b_env.c b/src/b_env.c index 8f0a974..a19aadd 100644 --- a/src/b_env.c +++ b/src/b_env.c @@ -16,13 +16,11 @@ #include "f_fail.h" #include "s_struct.h" -uint8_t - b_env(char *args[], - t_msh *msh) +uint8_t b_env(char *args[], t_msh *msh) { char **ptr; - if (args && args[0]) + if (args != NULL && args[0] != NULL) { f_fail_no_options("env", msh); return (127); diff --git a/src/b_env.h b/src/b_env.h index 6ad2800..dabbdd7 100644 --- a/src/b_env.h +++ b/src/b_env.h @@ -10,12 +10,12 @@ /* */ /* ************************************************************************** */ -#ifndef B_ENV_H -#define B_ENV_H +#ifndef FT_B_ENV_H +# define FT_B_ENV_H -#include <stdint.h> +# include <stdint.h> -#include "s_struct.h" +# include "s_struct.h" uint8_t b_env(char *args[], t_msh *msh); |