String Functions
LIB_FT
ft_strlcat.c
This material is for educational purposes only. Use it to understand concepts and develop your own solutions.
size_t ft_strlcat(char *dst, const char *src, size_t dstsize);
Appends the string src
to the end of dst
, ensuring null-termination and respecting the total buffer size.
ft_strlcat
concatenates strings safely. It appends at most dstsize - strlen(dst) - 1
characters from src
to dst
and null-terminates the result (as long as dstsize > 0
).