maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_strjoin_free.c File Reference
#include "libft.h"
Include dependency graph for ft_strjoin_free.c:

Go to the source code of this file.

Functions

char * ft_strjoin_free (char *s1, char *s2)
 

Function Documentation

◆ ft_strjoin_free()

char * ft_strjoin_free ( char *  s1,
char *  s2 
)

Definition at line 15 of file ft_strjoin_free.c.

16{
17 char *result;
18
19 if (!s1 || !s2)
20 return (NULL);
21 result = ft_strjoin(s1, s2);
22 free(s1);
23 return (result);
24}
char * ft_strjoin(char const *s1, char const *s2)
Definition ft_strjoin.c:23

References ft_strjoin().

Referenced by append_expanded_var(), ev_loop(), and expand_variable().

Here is the call graph for this function:
Here is the caller graph for this function: