tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
ft_strlcat.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/24 17:59:54 by tgrekov #+# #+# */
/* Updated: 2023/11/09 20:53:03 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_strlcat.c.

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

Go to the source code of this file.

Functions

size_t ft_strlcat (char *dst, const char *src, size_t dstsize)
 Appends at most dstsize - ft_strlen(dst) - 1 characters of string src to the end of string dst.
 

Function Documentation

◆ ft_strlcat()

size_t ft_strlcat ( char *  dst,
const char *  src,
size_t  dstsize 
)

Appends at most dstsize - ft_strlen(dst) - 1 characters of string src to the end of string dst.

Null-terminates dst if dstsize != 0 and ft_strlen(dst) < dstsize

Parameters
[in,out]dstNull-terminated string to append to
[in]srcNull terminated string to append from
[in]dstsizeMaximum size of the destination after appending
Return values
size_tLength of the string the function attempted to create

Definition at line 34 of file ft_strlcat.c.

References ft_strlen().

Here is the call graph for this function: