diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-13 21:01:18 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-13 21:01:18 +0200 |
| commit | c51d31b8b751585153500729c25ae2f02d179e45 (patch) | |
| tree | eab34e14508f5a2a3ad2c5d06c56afdd7ba72e9e /src/builtin/exit.c | |
| parent | 490237aece240c05b5a9035665a88327e1be87ed (diff) | |
| download | minishell-c51d31b8b751585153500729c25ae2f02d179e45.tar.gz minishell-c51d31b8b751585153500729c25ae2f02d179e45.tar.bz2 minishell-c51d31b8b751585153500729c25ae2f02d179e45.zip | |
Refactoring eval file structure, Added comment to builtin
Diffstat (limited to 'src/builtin/exit.c')
| -rw-r--r-- | src/builtin/exit.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/builtin/exit.c b/src/builtin/exit.c index a24efad..51c8013 100644 --- a/src/builtin/exit.c +++ b/src/builtin/exit.c @@ -6,17 +6,24 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:10:16 by charles #+# #+# */ -/* Updated: 2020/09/10 19:41:03 by charles ### ########.fr */ +/* Updated: 2020/09/13 20:25:55 by charles ### ########.fr */ /* */ /* ************************************************************************** */ -#include "minishell.h" - /* ** \file exit.c ** \brief `exit` builtin */ +#include "minishell.h" + +/* +** \brief Exit the current process with a status +** \param argv arguments +** \param env environment +** \return always 0 +*/ + int builtin_exit(char **argv, t_env env) { long status; |
