2023-03-28 09:55:08 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* builtins.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2023/03/27 13:41:30 by cchauvet #+# #+# */
|
|
|
|
/* Updated: 2023/03/27 13:41:31 by cchauvet ### ########.fr */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
2023-03-10 06:32:39 -05:00
|
|
|
#ifndef BUILTINS_H
|
|
|
|
# define BUILTINS_H
|
|
|
|
# include "../libftx/libft/list.h"
|
|
|
|
|
|
|
|
int echo(int fd, char **strs);
|
|
|
|
int pwd(int fd);
|
|
|
|
char *get_pwd(int fd);
|
|
|
|
int print_env(t_list **env, int fd);
|
|
|
|
int ft_export(t_list **env, char **args, int fd);
|
|
|
|
int move_folder(char **args, int fd);
|
|
|
|
int unset(t_list **env, char **args, int fd);
|
|
|
|
int ft_exit(char **args);
|
|
|
|
|
|
|
|
#endif
|