Date: Mon, 22 Jan 2007 22:31:50 +0100 From: =?iso-8859-2?Q?K=F8i=B9tof_=AEelechovski?= <giecrilj@stegny.2a.pl> To: <freebsd-standards@freebsd.org> Subject: return value of fprintf Message-ID: <005301c73e6c$ba6ffd00$1a01080a@POCZTOWIEC>
next in thread | raw e-mail | index | archive | help
The <http://www.freebsd.org/cgi/man.cgi?query=3Dfprintf&apropos=3D0&sektion=3D= 0&manpat h=3DFreeBSD+7-current&format=3Dhtml> fprintf manual page says it is ANSI = C compatible and it returns the number of characters printed. The latter is correct: I get printf("abcd") =3D=3D 4 even under = >/dev/full. (uname is Interix on x86 ver. 3.5) However, the former is not: according to the ANSI C standard <http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf> , = =A77.19.6.1/14, printf should return a negative value in this case. I would like to make it a problem report so I send it for public review first. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005301c73e6c$ba6ffd00$1a01080a>