[ADD] cd builtin
This commit is contained in:
parent
b103e605c3
commit
d3fdd3bbf6
5 changed files with 68 additions and 5 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jschaft <cecile.schaft@orange.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/05/31 13:45:38 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/06/03 13:52:11 by jschaft ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -97,6 +97,14 @@ const char **get_path(const t_memclass mc, char *const envp[]);
|
|||
const char *search_path(
|
||||
const t_memclass mc, const char **path, const char *prog);
|
||||
|
||||
///// BUILTIN /////
|
||||
|
||||
// Check if the command is a builtin, return 1 if yes, -1 if no
|
||||
int is_builtin(const char *str);
|
||||
|
||||
// Execute the builtin command
|
||||
int exec_builtin(t_call call);
|
||||
|
||||
///// MAIN /////
|
||||
extern t_memclass g_mc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue