diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-12-24 13:17:13 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-12-24 13:17:13 +0000 |
commit | a65a537cb1aaf93c8bad3ee02fe80e05bb4ab52d (patch) | |
tree | ee31edc73ea931306b6161ae51f1def8aba1c95f /lib | |
parent | 4ecaf22055282efee8a087248dea361f7246c109 (diff) | |
download | src-a65a537cb1aaf93c8bad3ee02fe80e05bb4ab52d.tar.gz src-a65a537cb1aaf93c8bad3ee02fe80e05bb4ab52d.zip |
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
Notes
Notes:
svn path=/head/; revision=31967
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/fvwrite.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/stdio/fvwrite.c b/lib/libc/stdio/fvwrite.c index 28db2bafc4f6..8ff74460eaee 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(;); |