/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* builtins.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jschaft +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */ /* Updated: 2024/07/03 18:59:22 by jschaft ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef BUILTINS_H # define BUILTINS_H # include "include.h" // Check if the command is a builtin. bool is_builtin(const char *str); // Execute the builtin command int exec_builtin(t_env *env, t_call call); // Execute echo builtin int echo_builtin(t_env *env, t_call call); // Execute cd builtin int cd_builtin(t_env *env, t_call call); //Execute builtin with no arguments int export_print_builtin(char *const *envp); // Execute export builtin int export_builtin(t_env *env, t_call call); // Execute exit builtin int exit_builtin(t_env *env, t_call call); #endif