This commit is contained in:
2024-05-22 13:53:49 +02:00
parent 1731f820ee
commit ded1b802b2
6 changed files with 43 additions and 10 deletions

24
srcs/parsing_utils.c Normal file
View File

@ -0,0 +1,24 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parsing_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/22 13:49:17 by tomoron #+# #+# */
/* Updated: 2024/05/22 13:50:31 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int get_home_var_len(void)
{
char *str;
str = getenv("HOME");
if (!str)
return (1);
else
return (ft_strlen("HOME"));
}