FreeBSD Manual Pages
xt_strlcat(3) Library Functions Manual xt_strlcat(3) NAME xt_strcat() - Concatenate strings without risk of buffer overflow LIBRARY #include <xtend/string.h> -lxtend SYNOPSIS size_t xt_strlcat(char *dest, const char *src, size_t dstsize) ARGUMENTS dest: Pointer to a character array of at least len dstsize, where the possibly modified string is stored. src: Point to a character array containing the string to compact dstsize: Length of the dest array DESCRIPTION Concatenate string src to dest, truncating if necessary to avoid over- flowing the destination array. RETURN VALUES The combined lengths of the two strings. If the return value is larger than the dstsize, then truncation has occurred. EXAMPLES #define MAXLEN 127 char limited_str[MAXLEN + 1], original_str[SOME_OTHER_LEN + 1]; xt_strlcat(limited_str, original_str, MAXLEN + 1); SEE ALSO xt_strlcpy(3), xt_strlsqueeze(3) xt_strlcat(3)
NAME | LIBRARY | SYNOPSIS | ARGUMENTS | DESCRIPTION | RETURN VALUES | EXAMPLES | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_strlcat&sektion=3&manpath=FreeBSD+Ports+15.0>
