diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-07-02 23:52:20 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-07-02 23:52:20 +0000 |
| commit | 1a0a934547909744a6a2fa4cfd5b795ec6394f05 (patch) | |
| tree | 23294a96f715e1e5bc35c1029ec151c90ee95b96 /lib/libc/string | |
| parent | e37a7c5f5a689c6f1994a879f5fa86066b7aac82 (diff) | |
Notes
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strlcpy.3 | 6 | ||||
| -rw-r--r-- | lib/libc/string/strsep.3 | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3 index 3cc5ae49e1a5..f674fe2ac49b 100644 --- a/lib/libc/string/strlcpy.3 +++ b/lib/libc/string/strlcpy.3 @@ -47,7 +47,8 @@ The .Fn strlcpy and .Fn strlcat -functions copy and concatenate strings respectively. They are designed +functions copy and concatenate strings respectively. +They are designed to be safer, more consistent, and less error prone replacements for .Xr strncpy 3 and @@ -108,7 +109,8 @@ The and .Fn strlcat functions return the total length of the string they tried to -create. For +create. +For .Fn strlcpy that means the length of .Fa src . diff --git a/lib/libc/string/strsep.3 b/lib/libc/string/strsep.3 index 77c7b844ae16..7a2b0f88d320 100644 --- a/lib/libc/string/strsep.3 +++ b/lib/libc/string/strsep.3 @@ -115,7 +115,7 @@ While the .Fn strtok function should be preferred for portability reasons (it conforms to .St -isoC ) -it is unable to handle empty fields, i.e. detect fields delimited by +it is unable to handle empty fields, i.e., detect fields delimited by two adjacent delimiter characters, or to be used for more than a single string at a time. The |
