42_minishell/builtins/builtins.h

27 lines
1.2 KiB
C
Raw Permalink Normal View History

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 #+# #+# */
2023-04-18 07:30:17 -04:00
/* Updated: 2023/04/18 12:57:36 by erey-bet ### ########.fr */
2023-03-28 09:55:08 -04:00
/* */
/* ************************************************************************** */
#ifndef BUILTINS_H
# define BUILTINS_H
# include "../libftx/libft/list.h"
int echo(int fd, char **strs);
int pwd(int fd);
2023-04-18 07:30:17 -04:00
char *get_pwd(void);
int print_env(t_list **env, int fd);
int ft_export(t_list **env, char **args, int fd);
2023-04-18 07:30:17 -04:00
int move_folder(char **args, t_list **env, int fd);
int unset(t_list **env, char **args, int fd);
2023-04-05 06:17:16 -04:00
int ft_exit(char **args, int err);
#endif