maxishell
Implementation of a shell for Linux-like systems
|
#include "env.h"
#include "libft.h"
#include <stdlib.h>
#include "shell.h"
#include <stdio.h>
#include "exit_status.h"
Go to the source code of this file.
Functions | |
int | builtin_export (t_ms_data *data) |
static void | print_env (t_env *env) |
static void | add_env (t_ms_data *data) |
|
static |
Definition at line 70 of file export.c.
References s_ms_data::args, s_ms_data::envp, ft_strcdup(), ft_strchr(), and set_env().
Referenced by builtin_export().
int builtin_export | ( | t_ms_data * | data | ) |
Definition at line 30 of file export.c.
References add_env(), s_ms_data::args, s_ms_data::envp, exit_status_handler(), EXIT_SUCCESS, ft_putendl_fd(), ft_strcmp(), ft_strjoin(), INVALID_OPTION, and print_env().
Referenced by execute().
|
static |
Definition at line 54 of file export.c.
References ft_printf(), ft_strcmp(), s_env::key, s_env::next, and s_env::value.
Referenced by builtin_export().