summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/strftime.3
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-03 15:39:06 +0000
committerimp <imp@FreeBSD.org>1997-03-03 15:39:06 +0000
commitf8a5871d894eb75405f35d9ce4eeb220fbd6c627 (patch)
tree41a45ecad455b6421976ad326f4b2c5329c55c63 /lib/libc/stdtime/strftime.3
parent7de8df2b4b2cbbd2d540b1f2b1b4bdd605fd298d (diff)
downloadFreeBSD-src-f8a5871d894eb75405f35d9ce4eeb220fbd6c627.zip
FreeBSD-src-f8a5871d894eb75405f35d9ce4eeb220fbd6c627.tar.gz
Use .Sq Li \&\e0 rather than NUL to describe the character with no bits
set, as suggested by Garrett Wollman. This is more consistant with how things like strncpy are done, as well as harder to confuse NUL and NULL.
Diffstat (limited to 'lib/libc/stdtime/strftime.3')
-rw-r--r--lib/libc/stdtime/strftime.310
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3
index 0ff3ad7..ba2d1a0 100644
--- a/lib/libc/stdtime/strftime.3
+++ b/lib/libc/stdtime/strftime.3
@@ -72,13 +72,17 @@ could have been written into
.Fa buf
then
.Fa bug
-will not be NUL terminated.
+will not be
+.Sq Li \&\e0
+terminated.
If the total number of resulting characters, including the terminating
-NUL character, is not more than
+.Sq Li \&\e0
+character, is not more than
.Fa maxsize ,
.Fn strftime
returns the number of characters in the array, not counting the
-terminating NUL.
+terminating
+.Sq Li \&\e0 .
Otherwise, zero is returned.
.Pp
Each conversion specification is replaced by the characters as
OpenPOWER on IntegriCloud