summaryrefslogtreecommitdiffstats
path: root/src/u_vars.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 21:19:29 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 21:19:29 +0200
commit004eef9a3fd3403d6634ca658336d9a1e9766685 (patch)
tree571cd00a9719c9174f0e5ad09f57585a6bd87e86 /src/u_vars.c
parentI couldn't see shit (diff)
download42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.gz
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.bz2
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.xz
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.tar.zst
42-minishell-004eef9a3fd3403d6634ca658336d9a1e9766685.zip
In progress
Diffstat (limited to 'src/u_vars.c')
-rw-r--r--src/u_vars.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/u_vars.c b/src/u_vars.c
index 3f3a1a5..2b7fc4a 100644
--- a/src/u_vars.c
+++ b/src/u_vars.c
@@ -123,11 +123,11 @@ static char
}
/*
-** char *
-** subst_var_value(const char varname[], const t_msh *msh);
+** char*
+** get_var_value(const char varname[], t_msh *msh);
**
** DESCRIPTION
-** The subst_var_value() function returns
+** The get_var_value() function returns
** a heap-allocated, null-terminated string
** that may later be free'd containing the
** value of the variable varname[] including
@@ -136,8 +136,8 @@ static char
*/
char
- *subst_var_value(const char varname[],
- t_msh *msh)
+ *get_var_value(const char varname[],
+ t_msh *msh)
{
/* TODO: check behaviour on empty vars -> "QWE=" */
/* TODO: add support for global variables -> "$hey $nigga..." */