Revert my last few changes. They were bogus. Replaced them with

the original text plus a statement saying that if strftime fails,
the results are undefined.

Requested a long time ago by: bde
This commit is contained in:
imp 1997-03-31 04:51:13 +00:00
parent 723e73e868
commit 9fbe13c29e

View File

@ -66,24 +66,14 @@ and one other character.
.Pp
No more than
.Fa maxsize
characters will be placed into the array. If more characters than
.Fa maxsize
could have been written into
.Fa buf
then
.Fa bug
will not be
.Sq Li \&\e0
terminated.
characters will be placed into the array.
If the total number of resulting characters, including the terminating
.Sq Li \&\e0
character, is not more than
null character, is not more than
.Fa maxsize ,
.Fn strftime
returns the number of characters in the array, not counting the
terminating
.Sq Li \&\e0 .
Otherwise, zero is returned.
terminating null.
Otherwise, zero is returned and the contents of the buffer are undefined.
.Pp
Each conversion specification is replaced by the characters as
follows which are then copied into the buffer.