/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_strdup_safe.c :+: :+: */ /* +:+ */ /* By: whaffman +#+ */ /* +#+ */ /* Created: 2025/02/20 18:01:27 by whaffman #+# #+# */ /* Updated: 2025/02/20 18:04:53 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ #include "minishell.h" char *ft_strdup_safe(t_minishell *minishell, const char *str) { char *new_str; new_str = ft_strdup(str); check_malloc(minishell, new_str); return (new_str); }