diff options
| author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:16:23 +0200 | 
|---|---|---|
| committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:16:23 +0200 | 
| commit | 3296f4a71c970be0e04a5b671f5d1a3a02c157b0 (patch) | |
| tree | 3fd2527f82ea33606cad66367227762731f75e7a | |
| parent | Normed b_sqb_str (diff) | |
| download | 42-minishell-3296f4a71c970be0e04a5b671f5d1a3a02c157b0.tar.gz 42-minishell-3296f4a71c970be0e04a5b671f5d1a3a02c157b0.tar.bz2 42-minishell-3296f4a71c970be0e04a5b671f5d1a3a02c157b0.tar.xz 42-minishell-3296f4a71c970be0e04a5b671f5d1a3a02c157b0.tar.zst 42-minishell-3296f4a71c970be0e04a5b671f5d1a3a02c157b0.zip | |
Normed b_type
Diffstat (limited to '')
| -rw-r--r-- | src/b_type.c | 8 | ||||
| -rw-r--r-- | src/b_type.h | 8 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/src/b_type.c b/src/b_type.c index c490aae..e0ae270 100644 --- a/src/b_type.c +++ b/src/b_type.c @@ -24,7 +24,7 @@  #include "u_path.h"  #include "u_utils.h" -static int8_t	absolute_path_exists(char com[]) +static int8_t	b_absolute_path_exists(char com[])  {  	int32_t	fd;  	DIR		*dir; @@ -42,11 +42,11 @@ static int8_t	absolute_path_exists(char com[])  	return (0);  } -static void		type_get_path(char fullpath[], char com[], t_msh *msh) +static void		b_type_get_path(char fullpath[], char com[], t_msh *msh)  {  	if (ft_ischarset("/.", com[0]) == TRUE)  	{ -		if (absolute_path_exists(com)) +		if (b_absolute_path_exists(com))  		{  			ft_strlcpy(fullpath, com, PATH_MAX);  			return ; @@ -61,7 +61,7 @@ static uint8_t	b_check_nonbuilt(char *ptr, uint8_t ret, t_msh *msh)  	char	fullpath[PATH_MAX];  	fullpath[0] = C_NUL; -	type_get_path(fullpath, ptr, msh); +	b_type_get_path(fullpath, ptr, msh);  	if (fullpath[0] != C_NUL)  		ft_printf("%s is %s\n", ptr, fullpath);  	else diff --git a/src/b_type.h b/src/b_type.h index 474ba26..55ca34f 100644 --- a/src/b_type.h +++ b/src/b_type.h @@ -10,12 +10,12 @@  /*                                                                            */  /* ************************************************************************** */ -#ifndef B_TYPE_H -#define B_TYPE_H +#ifndef FT_B_TYPE_H +# define FT_B_TYPE_H -#include <stdint.h> +# include <stdint.h> -#include "s_struct.h" +# include "s_struct.h"  uint8_t	b_type(char *args[], t_msh *msh); | 
