diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdtime/strftime.3 | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3 index ba2d1a0..f3709fb 100644 --- a/lib/libc/stdtime/strftime.3 +++ b/lib/libc/stdtime/strftime.3 @@ -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. |