diff options
| author | wiz <wiz@NetBSD.org> | 2009-05-02 09:37:32 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2009-05-02 09:37:32 +0000 |
| commit | 3ae928cec96fce466c6cfce4a875652fee045e08 (patch) | |
| tree | ad0e7796506635eb14cd6c0f36622d8bbd993c33 /lib/libc/string | |
| parent | 1de194650d5ab7d14ec15cd9605fa0fa6f52295e (diff) | |
Improve formatting and punctuation for "NUL-terminate".
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strcpy.3 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3 index 9b7a17211d9..daa7b102888 100644 --- a/lib/libc/string/strcpy.3 +++ b/lib/libc/string/strcpy.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93 -.\" $NetBSD: strcpy.3,v 1.19 2009/05/02 09:31:08 wiz Exp $ +.\" $NetBSD: strcpy.3,v 1.20 2009/05/02 09:37:32 wiz Exp $ .\" .Dd May 1, 2009 .Dt STRCPY 3 @@ -140,15 +140,13 @@ char chararray[6]; .Pp Note that it does .Em not -.Tn NUL -terminate +.Dv NUL Ns No -terminate .Va chararray because the length of the source string is greater than or equal to the length parameter. .Fn strncpy .Em only -.Tn NUL -terminates +.Dv NUL Ns No -terminates the destination string when the length of the source string is less than the length parameter. .Pp @@ -157,15 +155,15 @@ The following copies as many characters from to .Va buf as will fit and -.Tn NUL -terminates the result. +.Dv NUL Ns No -terminates +the result. Because .Fn strncpy does .Em not guarantee to -.Tn NUL -terminate the string itself, this must be done explicitly. +.Dv NUL Ns No -terminate +the string itself, this must be done explicitly. .Bd -literal -offset indent char buf[1024]; |
