30 #if defined(LIBC_SCCS) && !defined(lint)
31 static char *rcsid =
"$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $";
34 #include <sys/types.h>
45 strlcat(
char *dst,
const char *src,
size_t siz)
47 register char *d = dst;
48 register const char *s = src;
49 register size_t n = siz;
53 while (n-- != 0 && *d !=
'\0')
59 return(dlen + strlen(s));
69 return(dlen + (s - src));