tgrekov-fdf
HIVE fdf May 2024
Loading...
Searching...
No Matches
ft_strjoin.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strjoin.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/25 16:26:56 by tgrekov #+# #+# */
/* Updated: 2023/11/09 20:53:09 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_strjoin.c.

#include "libft.h"
Include dependency graph for ft_strjoin.c:

Go to the source code of this file.

Functions

char * ft_strjoin (char const *s1, char const *s2)
 Allocates enough space for and appends string s2 to string s1 and returns the new string.
 

Function Documentation

◆ ft_strjoin()

char * ft_strjoin ( char const *  s1,
char const *  s2 
)

Allocates enough space for and appends string s2 to string s1 and returns the new string.

Parameters
[in]s1Null-terminated prefix string
[in]s2Null-terminated suffix string
Return values
char*Null-terminated combination of s1 and s2

Definition at line 30 of file ft_strjoin.c.

References ft_memcpy(), and ft_strlen().

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