aboutsummaryrefslogtreecommitdiffstats
path: root/man3/strcpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/strcpy.3')
-rw-r--r--man3/strcpy.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/strcpy.3 b/man3/strcpy.3
index 661b1363d4..a620575cdb 100644
--- a/man3/strcpy.3
+++ b/man3/strcpy.3
@@ -141,7 +141,7 @@ the length of
then
.BR strcpy ()
can be used.
-
+.PP
One valid (and intended) use of
.BR strncpy ()
is to copy a C string to a fixed-length buffer
@@ -150,7 +150,7 @@ and that unused bytes in the target buffer are zeroed out
(perhaps to prevent information leaks if the buffer is to be
written to media or transmitted to another process via an
interprocess communication technique).
-
+.PP
If there is no terminating null byte in the first
.I n
bytes of
@@ -181,9 +181,9 @@ bytes, information is lost in the copying to
.\"
.SS strlcpy()
Some systems (the BSDs, Solaris, and others) provide the following function:
-
+.PP
size_t strlcpy(char *dest, const char *src, size_t size);
-
+.PP
.\" http://static.usenix.org/event/usenix99/full_papers/millert/millert_html/index.html
.\" "strlcpy and strlcat - consistent, safe, string copy and concatenation"
.\" 1999 USENIX Annual Technical Conference