23 lines
1.1 KiB
C
23 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* ft_strjoin_safe.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/02/20 18:02:31 by whaffman #+# #+# */
|
|
/* Updated: 2025/02/20 18:04:23 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
char *ft_strjoin_safe(t_minishell *msh, const char *s1, const char *s2)
|
|
{
|
|
char *new_str;
|
|
|
|
new_str = ft_strjoin(s1, s2);
|
|
check_malloc(msh, new_str);
|
|
return (new_str);
|
|
}
|