variables d'environnement dans le parsing
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user