variables d'environnement dans le parsing

This commit is contained in:
Tom Moron
2024-02-09 14:42:03 +01:00
parent 9b80cc758f
commit 22403b127e
13 changed files with 382 additions and 59 deletions

View File

@ -6,13 +6,13 @@
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/01 02:36:12 by tomoron #+# #+# */
/* Updated: 2023/11/02 10:16:45 by tomoron ### ########.fr */
/* Updated: 2024/02/08 13:56:37 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
static int get_number_len(long int n)
int get_number_len(long int n)
{
int res;

View File

@ -6,7 +6,7 @@
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 12:34:41 by tomoron #+# #+# */
/* Updated: 2023/10/31 14:53:10 by tomoron ### ########.fr */
/* Updated: 2024/02/08 17:54:36 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
@ -16,7 +16,7 @@ size_t ft_strlen(const char *str)
unsigned int n;
n = 0;
while (str[n])
while (str && str[n])
n++;
return (n);
}

View File

@ -6,7 +6,7 @@
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 16:55:48 by tomoron #+# #+# */
/* Updated: 2024/02/06 22:15:58 by tomoron ### ########.fr */
/* Updated: 2024/02/08 18:44:22 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -60,6 +60,7 @@ char *ft_strdup(const char *src);
void ft_bzero(void *s, size_t n);
void ft_putnbr_fd(int n, int fd);
void ft_free_str_arr(char **arr);
int get_number_len(long int n);
size_t ft_strlen(const char *str);
void ft_swap(int *n1, int *n2);
t_list *ft_lstnew(void *content);