diff options
author | ru <ru@FreeBSD.org> | 2000-12-29 14:08:20 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-12-29 14:08:20 +0000 |
commit | 8ba41876884256f20dce333e0a239a8555ee2670 (patch) | |
tree | 406fdc6bd2e9339a476078f0728594ca5e4102f4 /lib/libc/string/strlcpy.3 | |
parent | f6aeda2758e1076d8ebfb1ef7f190c7f3ed5fb8a (diff) | |
download | FreeBSD-src-8ba41876884256f20dce333e0a239a8555ee2670.zip FreeBSD-src-8ba41876884256f20dce333e0a239a8555ee2670.tar.gz |
Prepare for mdoc(7)NG.
Diffstat (limited to 'lib/libc/string/strlcpy.3')
-rw-r--r-- | lib/libc/string/strlcpy.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3 index 0f2be7c..bc20d45 100644 --- a/lib/libc/string/strlcpy.3 +++ b/lib/libc/string/strlcpy.3 @@ -105,7 +105,7 @@ The following code fragment illustrates the simple case: .Bd -literal -offset indent char *s, *p, buf[BUFSIZ]; -.Li ... +\&... (void)strlcpy(buf, s, sizeof(buf)); (void)strlcat(buf, p, sizeof(buf)); @@ -116,7 +116,7 @@ like the following might be used: .Bd -literal -offset indent char *dir, *file, pname[MAXPATHLEN]; -.Li ... +\&... if (strlcpy(pname, dir, sizeof(pname)) >= sizeof(pname)) goto toolong; @@ -130,7 +130,7 @@ speed things up a bit by using a copy instead on an append: char *dir, *file, pname[MAXPATHNAMELEN]; size_t n; -.Li ... +\&... n = strlcpy(pname, dir, sizeof(pname)); if (n >= sizeof(pname)) |