diff options
author | kris <kris@FreeBSD.org> | 2001-07-24 11:34:22 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-07-24 11:34:22 +0000 |
commit | dd1f265a1adfe0474a5a29736e017a701e437a3f (patch) | |
tree | cc26bd3a52cd45c396d4ef08acd190cbd5005df4 /sys/libkern | |
parent | bec32b3e9bf681acd8c77186edcfb2af99e4a6c7 (diff) | |
download | FreeBSD-src-dd1f265a1adfe0474a5a29736e017a701e437a3f.zip FreeBSD-src-dd1f265a1adfe0474a5a29736e017a701e437a3f.tar.gz |
Sync to OpenBSD (update comment and minor style change).
Obtained from: OpenBSD
MFC after: 1 week
Diffstat (limited to 'sys/libkern')
-rw-r--r-- | sys/libkern/strlcat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/libkern/strlcat.c b/sys/libkern/strlcat.c index c325ef3..405389c 100644 --- a/sys/libkern/strlcat.c +++ b/sys/libkern/strlcat.c @@ -42,10 +42,11 @@ static const char rcsid[] = * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters * will be copied. Always NUL terminates (unless siz <= strlen(dst)). - * Returns strlen(initial dst) + strlen(src); if retval >= siz, - * truncation occurred. + * Returns strlen(src) + MIN(siz, strlen(initial dst)). + * If retval >= siz, truncation occurred. */ -size_t strlcat(dst, src, siz) +size_t +strlcat(dst, src, siz) char *dst; const char *src; size_t siz; |