From 59e5dcc34fd4a94b4fc313a4c90abca69b5d70df Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 3 Mar 1997 15:39:06 +0000 Subject: [PATCH] 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. --- lib/libc/stdtime/strftime.3 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3 index 0ff3ad77dc69..ba2d1a0ca60f 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