summaryrefslogtreecommitdiffstats
path: root/usr.bin/printf
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2000-01-19 04:16:48 +0000
committerchris <chris@FreeBSD.org>2000-01-19 04:16:48 +0000
commit87094c8006032a0f6adcc9c0009c9923868e27a4 (patch)
tree34f56a9bd43e41807dd8ff632d64b8acd9c92ad4 /usr.bin/printf
parent0e638ddc72e7558a3ede2a5989fb4c925da839d9 (diff)
downloadFreeBSD-src-87094c8006032a0f6adcc9c0009c9923868e27a4.zip
FreeBSD-src-87094c8006032a0f6adcc9c0009c9923868e27a4.tar.gz
Document truncation of strings when a NUL character is reached in a format
string. PR: 15929 Submitted by: Daniel Hagan <dhagan@cs.vt.edu>
Diffstat (limited to 'usr.bin/printf')
-rw-r--r--usr.bin/printf/printf.16
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/printf/printf.1 b/usr.bin/printf/printf.1
index 9f0d9a9..27440e2 100644
--- a/usr.bin/printf/printf.1
+++ b/usr.bin/printf/printf.1
@@ -281,3 +281,9 @@ then back again, floating-point precision may be lost.
.Pp
.Tn ANSI
hexadecimal character constants were deliberately not provided.
+.Pp
+The escape sequence \e000 is the string terminator. When present in the
+.Ar format ,
+the
+.Ar format
+will be truncated at the \e000 character.
OpenPOWER on IntegriCloud