summaryrefslogtreecommitdiffstats
path: root/src/u_vars.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:26:44 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:26:44 +0100
commitf6faf88cd0991be3184af67d5fa271b12f70e925 (patch)
tree02c283541fd2c0b4ccacd31172cccf2ba9711c51 /src/u_vars.c
parentNorming in progress (diff)
download42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.gz
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.bz2
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.xz
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.zst
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.zip
Norming
Diffstat (limited to '')
-rw-r--r--src/u_vars.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/u_vars.c b/src/u_vars.c
index e096730..266b94b 100644
--- a/src/u_vars.c
+++ b/src/u_vars.c
@@ -20,7 +20,7 @@
#include "s_struct.h"
#include "u_utils.h"
-static void u_get_frm_env(char str[],
+static void u_get_frm_env(char str[],
const char varname[],
size_t dstsize,
t_msh *msh)
@@ -49,12 +49,12 @@ static void u_get_frm_env(char str[],
ft_delwords(env_dup);
}
-static void u_get_special_var(char str[],
- const char varname[],
- size_t dstsize,
- t_msh *msh)
+static void u_get_special_var(char str[],
+ const char varname[],
+ size_t dstsize,
+ t_msh *msh)
{
- char tmp[255];
+ char tmp[255];
int n;
if (ft_strncmp(varname, M_RET_VAR, 3) == 0)
@@ -76,7 +76,7 @@ static void u_get_special_var(char str[],
}
}
-void u_get_custom_var(char str[],
+void u_get_custom_var(char str[],
const char varname[],
size_t dstsize,
t_msh *msh)
@@ -109,10 +109,10 @@ void u_get_custom_var(char str[],
** varname[] wasn't found.
*/
-unsigned char u_get_var_value(char str[],
- const char varname[],
- size_t dstsize,
- t_msh *msh)
+unsigned char u_get_var_value(char str[],
+ const char varname[],
+ size_t dstsize,
+ t_msh *msh)
{
str[0] = C_NUL;
u_get_special_var(str, varname, dstsize, msh);