summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fvwrite.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-12-24 13:17:13 +0000
committerache <ache@FreeBSD.org>1997-12-24 13:17:13 +0000
commit5d2bb2184a34422865a75ab574fa793f04bdfada (patch)
treec51f4a9a750b6238749e70f99bb5d5ca26e06575 /lib/libc/stdio/fvwrite.c
parent46f0000bfe6e7ca4ae2e0e9c101c86bbc173159f (diff)
downloadFreeBSD-src-5d2bb2184a34422865a75ab574fa793f04bdfada.zip
FreeBSD-src-5d2bb2184a34422865a75ab574fa793f04bdfada.tar.gz
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
Diffstat (limited to 'lib/libc/stdio/fvwrite.c')
-rw-r--r--lib/libc/stdio/fvwrite.c9
1 files changed, 4 insertions, 5 deletions
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 <stdio.h>
@@ -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(;);
OpenPOWER on IntegriCloud