diff options
author | 2013-01-05 12:55:10 +0000 | |
---|---|---|
committer | 2013-01-05 12:55:10 +0000 | |
commit | 1c678d802b7647361d516ac6a6b1ff6afd4ff9c7 (patch) | |
tree | be591c0a6b7526362cd2fa25744829c6d52cbd73 /lib/libc/time | |
parent | Check UDP length field for short as well as long values. Fixes a (diff) | |
download | wireguard-openbsd-1c678d802b7647361d516ac6a6b1ff6afd4ff9c7.tar.xz wireguard-openbsd-1c678d802b7647361d516ac6a6b1ff6afd4ff9c7.zip |
Fix verbiage to make it clear that on success the return value of
strftime() is the number of characters printed.
POSIX verbiage verified by jmc@, ok jmc@.
Diffstat (limited to 'lib/libc/time')
-rw-r--r-- | lib/libc/time/strftime.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/time/strftime.3 b/lib/libc/time/strftime.3 index 06923f67f6e..fae70c0cdf0 100644 --- a/lib/libc/time/strftime.3 +++ b/lib/libc/time/strftime.3 @@ -30,9 +30,9 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 -.\" $OpenBSD: strftime.3,v 1.29 2012/09/13 11:14:20 millert Exp $ +.\" $OpenBSD: strftime.3,v 1.30 2013/01/05 12:55:10 krw Exp $ .\" -.Dd $Mdocdate: September 13 2012 $ +.Dd $Mdocdate: January 5 2013 $ .Dt STRFTIME 3 .Os .Sh NAME @@ -68,7 +68,7 @@ If the total number of resulting characters, including the terminating NUL character, is not more than .Fa maxsize , .Fn strftime -returns the number of characters in the array, not counting the +returns the number of characters placed in the array, not counting the terminating NUL. Otherwise, zero is returned. .Pp |