From 3f475455abd41e59bad43535e442a32b390619eb Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 5 Jan 2013 12:55:11 +0000 Subject: 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@. --- lib/libc/time/strftime.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc') 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 -- cgit v1.2.3