This commit is contained in:
Loic Deridder
2025-01-15 13:41:40 +01:00
parent eedfe4a0ee
commit 0ec78ee34c
11 changed files with 182 additions and 48 deletions

View File

@@ -1,27 +1,6 @@
#include "../../includes/builtins.h"
// static char *find_home(char **envp)
// {
// int i;
// char *str;
//
// i = 0;
// if (!envp)
// return (NULL);
// while (ft_strnstr(envp[i], "HOME=", 5) == 0)
// i++;
// str = envp[i + 5];
// return (str);
// }
//
// int cd(char *path, char **envp)
// {
// char *str;
//
// if (path == NULL)
// {
// //cd $HOME
// str = find_home(envp);
// chdir(str);
// }
// }
void builtin_cd(char *str)
{
(void)str;
}