strlcat
strlcat is a C library function that concatenates the string src to the end of dst with a size limit. It was designed to be a safer alternative to strcat by requiring a known total size for the destination buffer and by guaranteeing NUL termination when possible. The function signature is strlcat(char *dst, const char *src, size_t dstsize). It appends at most dstsize-1 - strlen(dst) bytes from src to dst and always terminates dst with a NUL if dstsize is greater than zero.
The function returns a size_t value that represents the length of the string it tried to create,
Originating in BSD Unix, strlcat is not part of the C standard. It is common on BSD-derived
Usage considerations include checking the return value to detect truncation and ensuring that the destination buffer