From 64f495b114c911dcc61f002e27635a538ac270b4 Mon Sep 17 00:00:00 2001 From: yosyo Date: Mon, 27 May 2024 13:13:46 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E2=9C=A8=E3=80=8D=20feat(env=5Fget=5F?= =?UTF-8?q?value):=20added=20a=20func=20to=20get=20value=20of=20a=20variab?= =?UTF-8?q?le=20with=20the=20env=20struct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/execution.h | 12 +++++++++++- src/env/env_cmd.c | 11 ++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/include/execution.h b/include/execution.h index b084f28..ed31f47 100644 --- a/include/execution.h +++ b/include/execution.h @@ -6,7 +6,7 @@ /* By: mmoussou name, name)) + env = env->next; + if (env) + return (env->content); + return (NULL); +} + void env_print(t_env *env) { while (env)