1 #ifndef STRLCAT_H 2 #define STRLCAT_H 3 4 #include <stddef.h> 5 #include <stdint.h> 6 7 /* 8 * Appends src to string dst of size siz (unlike strncat, siz is the 9 * full size of dst, not space left). At most siz-1 characters 10 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). 11 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 12 * If retval >= siz, truncation occurred. 13 */ 14 size_t strlcat(char *dst, const char *src, size_t siz); 15 16 #endif 17