aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-17 12:52:06 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-17 12:52:06 +0200
commit83c8441919c830c7e683de08330f4edd2fb54d10 (patch)
treece6c9c747adeb1b15dea3a50e047d3f6e1dc29e7 /include
parenta1704494c323177d4c4d8cf822aa80297181c4fe (diff)
downloadminishell-83c8441919c830c7e683de08330f4edd2fb54d10.tar.gz
minishell-83c8441919c830c7e683de08330f4edd2fb54d10.tar.bz2
minishell-83c8441919c830c7e683de08330f4edd2fb54d10.zip
Added env_export and env_keycmp
Diffstat (limited to 'include')
-rw-r--r--include/minishell.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/minishell.h b/include/minishell.h
index 97b12e4..148766f 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */
-/* Updated: 2020/06/15 09:47:20 by charles ### ########.fr */
+/* Updated: 2020/06/17 12:51:48 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -70,8 +70,10 @@ t_path path_update(t_path path, char *path_var);
*/
t_env env_from_array(char **envp);
+int env_keycmp(char *var, char *key);
char *env_search(t_env env, char *key);
char *env_search_first_match(t_env env, const char *haystack);
+char *env_export(t_env env, char *key, char *value);
/*
** builtin*.c - directory with all builtin commands