From 20ffd1f752dcb6071a4f3bcb32be89fc80ecef28 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 16 Dec 2008 23:09:19 +0000 Subject: fix return values for snprintf and vsnprintf. --- lib/libc/stdio/printf.3 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 6e1705083b2..79d9431b34c 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: printf.3,v 1.46 2008/12/11 09:07:46 wiz Exp $ +.\" $NetBSD: printf.3,v 1.47 2008/12/16 23:09:19 christos Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,7 +33,7 @@ .\" .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 .\" -.Dd June 9, 2007 +.Dd December 16, 2008 .Dt PRINTF 3 .Os .Sh NAME @@ -704,7 +704,11 @@ width, the field is expanded to contain the conversion result. .Sh RETURN VALUES These functions return -the number of characters printed +the number of characters printed, or that would be printed if there +was adequate space in case of +.Fn snprintf +and +.Fn vsnprintf , (not including the trailing .Ql \e0 used to end output to strings). -- cgit