diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-15 19:59:41 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-15 19:59:41 +0200 |
commit | ca2e36781039eb7e9901ccde395600e7af87ff4f (patch) | |
tree | 8a9d85433e943fbbd079bc55700e048a54d9bf24 /src/u_path.h | |
parent | type builtin fix (diff) | |
download | 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.gz 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.bz2 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.xz 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.zst 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.zip |
Huge fixes and stack stuff
Diffstat (limited to '')
-rw-r--r-- | src/u_path.h (renamed from src/e_externs_next.h) | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/e_externs_next.h b/src/u_path.h index db03bac..0c8e256 100644 --- a/src/e_externs_next.h +++ b/src/u_path.h @@ -1,7 +1,7 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* e_externs_next.h :+: :+: :+: */ +/* u_path.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ @@ -10,12 +10,16 @@ /* */ /* ************************************************************************** */ -#ifndef E_EXTERNS_NEXT_H -#define E_EXTERNS_NEXT_H +#ifndef U_PATH_H +#define U_PATH_H + +#include <stdint.h> #include "s_struct.h" -char **get_env_path(t_msh *msh); -char *search_in_path(const char com[], char *envpath[], t_msh *msh); +uint8_t u_search_in_path(char fullpath[], + const char com[], + size_t dstsize, + t_msh *msh); #endif |