From 5d2bb2184a34422865a75ab574fa793f04bdfada Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 24 Dec 1997 13:17:13 +0000 Subject: Remove wrong comment about snprintf: "return the number of bytes needed, rather the number used" According to Single Unix specs: Upon successful completion, these functions return the number of bytes transmitted excluding the terminating null --- lib/libc/stdio/fvwrite.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/libc/stdio/fvwrite.c') diff --git a/lib/libc/stdio/fvwrite.c b/lib/libc/stdio/fvwrite.c index 28db2ba..8ff7446 100644 --- a/lib/libc/stdio/fvwrite.c +++ b/lib/libc/stdio/fvwrite.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)fvwrite.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: fvwrite.c,v 1.5 1997/02/22 15:02:08 peter Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -104,10 +104,9 @@ __sfvwrite(fp, uio) * one _bf._size byte chunk directly (without copying). * * String output is a special case: write as many bytes - * as fit, but pretend we wrote everything. This makes - * snprintf() return the number of bytes needed, rather - * than the number used, and avoids its write function - * (so that the write function can be invalid). + * as fit, but pretend we wrote everything. This avoids + * snprintf() write function (so that the write function + * can be invalid). */ do { GETIOV(;); -- cgit v1.1