Module Name:    src
Committed By:   uwe
Date:           Fri Aug 11 13:10:59 UTC 2023

Modified Files:
        src/lib/libc/string: strncpy.3

Log Message:
strncpy(3): use .Sm off/on around a fancy expression to avoid lots of Ns


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/lib/libc/string/strncpy.3:1.4
--- src/lib/libc/string/strncpy.3:1.3	Fri Aug 11 12:26:59 2023
+++ src/lib/libc/string/strncpy.3	Fri Aug 11 13:10:59 2023
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)strcpy.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: strncpy.3,v 1.3 2023/08/11 12:26:59 riastradh Exp $
+.\"	$NetBSD: strncpy.3,v 1.4 2023/08/11 13:10:59 uwe Exp $
 .\"
 .Dd August 11, 2023
 .Dt STRNCPY 3
@@ -102,7 +102,9 @@ does not terminate
 with a
 .Ql \e0
 character, it instead returns a pointer to
-.Fa dst Ns Li "[" Fa len Ns Li "]" Ns ,
+.Sm off
+.Fa dst Li "[" Fa len Li "]" ,
+.Sm on
 which may be one past the last element of an array.
 .Sh EXAMPLES
 The following sets

Reply via email to