export builtin

This commit is contained in:
LuckyLaszlo
2021-12-04 18:14:24 +01:00
parent 2eed0f2d45
commit 27c00a78a0
4 changed files with 109 additions and 23 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/12/02 00:37:39 by lperrey ### ########.fr */
/* Updated: 2021/12/04 15:46:00 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -58,10 +58,11 @@ int builtin_cd(int argc, char *argv[], t_all *c);
int builtin_pwd(int argc, char *argv[], t_all *c);
int builtin_export(int argc, char *argv[], t_all *c);
int builtin_unset(int argc, char *argv[], t_all *c);
char *ft_getenv(char *env_var);
size_t ft_getenv_position(char *env_var);
int builtin_exit(int argc, char *argv[], t_all *c);
int builtin_env(int argc, char *argv[], t_all *c);
int builtin_echo(int argc, char *argv[], t_all *c);
int getenv_position(char **envp, char *name);
// Free
int exit_free(t_all *c, int exit_status);