mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 15:08:47 +02:00
25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_env.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/06/25 16:56:34 by mmoussou #+# #+# */
|
|
/* Updated: 2024/07/19 11:29:19 by mmoussou ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
void ft_env(t_env *env)
|
|
{
|
|
while (env)
|
|
{
|
|
if (env->content)
|
|
printf("%s=%s\n", env->name, env->content);
|
|
env = env->next;
|
|
}
|
|
get_exit_code(0);
|
|
}
|