summaryrefslogtreecommitdiffstats
path: root/src/ft_u_utils.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-04-29 11:47:02 +0200
committersalad <fmoenne-@student.le-101.fr>2020-04-29 11:47:02 +0200
commit961bda4f42562bf8ceb70a888730362d021c5552 (patch)
tree820577dc790c3a8884c44b329d04a8d42ed1ca44 /src/ft_u_utils.c
parentsimple really (diff)
parentTrying vars (diff)
download42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.gz
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.bz2
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.xz
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.tar.zst
42-minishell-961bda4f42562bf8ceb70a888730362d021c5552.zip
merge master into fmoenne_indahouse
Diffstat (limited to 'src/ft_u_utils.c')
-rw-r--r--src/ft_u_utils.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/ft_u_utils.c b/src/ft_u_utils.c
index 7e2eb53..b7ab7d8 100644
--- a/src/ft_u_utils.c
+++ b/src/ft_u_utils.c
@@ -26,23 +26,3 @@ uint64_t
}
return (argc);
}
-
-char
- *ft_get_home_dir(char **envp)
-{
- char **ptr;
- char *path;
-
- ptr = envp;
- while (*ptr)
- {
- /* TODO: rework this correctly */
- if (ft_strncmp("HOME", *ptr, 4) == 0)
- {
- path = ft_substr(*ptr, 5, ft_strlen(*ptr + 5));
- return (path);
- }
- ptr++;
- }
- return (NULL);
-}