Page MenuHomeFreeBSD

D27228.id79569.diff
No OneTemporary

D27228.id79569.diff

Index: lib/libc/string/strlcpy.3
===================================================================
--- lib/libc/string/strlcpy.3
+++ lib/libc/string/strlcpy.3
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 1, 2020
+.Dd November 15, 2020
.Dt STRLCPY 3
.Os
.Sh NAME
@@ -139,6 +139,11 @@
.Va dstsize ,
the output string has been truncated.
It is the caller's responsibility to handle this.
+Note:
+.Fn snprintf
+can return a negative value on some systems, while
+.Nm
+will not.
.Sh EXAMPLES
The following code fragment illustrates the simple case:
.Bd -literal -offset indent

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 21, 6:00 AM (11 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30065182
Default Alt Text
D27228.id79569.diff (590 B)

Event Timeline