- add freelist to minishell - add t_minishell *minishell to all function calling malloc_free - substituted all malloc calls but the first to malloc_safe
21 lines
1.0 KiB
C
21 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* builtin_env.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/02/20 11:33:02 by whaffman #+# #+# */
|
|
/* Updated: 2025/02/25 13:57:49 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
int builtin_env(t_minishell *minishell, t_command *cmd)
|
|
{
|
|
(void)cmd;
|
|
environment_print(minishell);
|
|
return (SUCCESS);
|
|
}
|