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
This commit is contained in:
Andrey A. Chernov 1997-12-24 13:17:13 +00:00
parent 4ecaf22055
commit a65a537cb1

View File

@ -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(;);