From cb7738a3da0ac11ed61e7fa17b214616f985b632 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 30 Sep 2020 17:23:50 +0200 Subject: Normed b_env --- src/b_env.c | 6 ++---- src/b_env.h | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'src') 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 +# include -#include "s_struct.h" +# include "s_struct.h" uint8_t b_env(char *args[], t_msh *msh); -- cgit v1.2.3