MiniDevil
As beautiful as a shell
Implements env: displays all env variables.
More...
Include dependency graph for builtin_env.c:Implements env: displays all env variables.
Definition in file builtin_env.c.
Functions | |
| int | builtin_env (char **args, t_env *env) |
Implement the env command. More... | |
| int builtin_env | ( | char ** | args, |
| t_env * | env | ||
| ) |
Implement the env command.
Print all environment variables which have a value in "KEY=VALUE" format, one per line and rejecting extra arguments.
| args | NULL terminated arguments array with arg[0] = "env" |
| env | Environment list to print |
Definition at line 26 of file builtin_env.c.
References t_env::key, t_env::next, and t_env::value.
Referenced by exec_builtin().
Here is the caller graph for this function: