Module Name: src
Committed By: riastradh
Date: Fri Aug 11 12:26:59 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Slightly more consistency about NUL vs '\0' in the text.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/string/strncpy.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/string/strncpy.3
diff -u src/lib/libc/string/strncpy.3:1.2 src/lib/libc/string/strncpy.3:1.3
--- src/lib/libc/string/strncpy.3:1.2 Fri Aug 11 11:51:54 2023
+++ src/lib/libc/string/strncpy.3 Fri Aug 11 12:26:59 2023
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strncpy.3,v 1.2 2023/08/11 11:51:54 riastradh Exp $
+.\" $NetBSD: strncpy.3,v 1.3 2023/08/11 12:26:59 riastradh Exp $
.\"
.Dd August 11, 2023
.Dt STRNCPY 3
@@ -100,7 +100,7 @@ If
does not terminate
.Fa dst
with a
-.Dv NUL
+.Ql \e0
character, it instead returns a pointer to
.Fa dst Ns Li "[" Fa len Ns Li "]" Ns ,
which may be one past the last element of an array.