minishell
Minishell Project for École 42
Loading...
Searching...
No Matches
env_builtin.c File Reference

Builtin function for displaying environment variables. More...

#include "minishell.h"
Include dependency graph for env_builtin.c:

Functions

int env (t_shell *shell, char **args)
 Displays the environment variables and their values.
 

Detailed Description

Builtin function for displaying environment variables.

This file contains the implementation of the env builtin command The env command is used to display the environment variables and their values.

Function Documentation

◆ env()

int env ( t_shell shell,
char **  args 
)

Displays the environment variables and their values.

This function implements the "env" command, which is used to display the environment variables and their corresponding values to the standard output.

Parameters
[in]shellA pointer to the shell struct.
[in]argsAn array of strings containing the arguments.
Returns
An exit status (EXIT_SUCCESS on success, or an error code on failure).