return value of fprintf

Křištof Želechovski giecrilj at
Mon Jan 22 21:55:33 UTC 2007

h=FreeBSD+7-current&format=html> 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") == 4 even under >/dev/full.
(uname is Interix on x86 ver. 3.5)

However, the former is not: according to the ANSI C standard
<> , §,
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


More information about the freebsd-standards mailing list