aboutsummaryrefslogtreecommitdiff
path: root/libft/src/str/ft_strcat3.c
blob: 1f7c5dfd162d016ce03da1464b0d38806979f821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_strcat3.c                                       :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/05 12:53:05 by charles           #+#    #+#             */
/*   Updated: 2020/04/05 12:55:49 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libft_str.h"

/*
** \brief       Wrapper around ft_strcat to concatenate 3 strings
** \param dest  Destination of the concatenation
** \param src1  First concatenation
** \param src2  Second concatenation
** \return      Pointer to destination
*/

char	*ft_strcat3(char *dest, const char *src1, const char *src2)
{
	return (ft_strcat(ft_strcat(dest, src1), src2));
}