🧱 ft_strlcat


📂 Category

String Functions

📁 Repository

LIB_FT

📝 File

ft_strlcat.c


⚠️ Educational Warning

This material is for educational purposes only. Use it to understand concepts and develop your own solutions.


🖥️ Prototype

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

💡 Note

Appends the string src to the end of dst, ensuring null-termination and respecting the total buffer size.


🧱 Description

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).