20 #include <sys/types.h> 31 strlcat(
char *dst,
const char *src,
size_t dsize)
33 const char *odst = dst;
34 const char *osrc = src;
39 while (n-- != 0 && *dst !=
'\0')
45 return(dlen +
strlen(src));
46 while (*src !=
'\0') {
55 return(dlen + (src - osrc));
size_t strlen(const char *)
size_t strlcat(char *dst, const char *src, size_t dsize)