Andrey A. Chernov 5ebfa8de69 Back out part related to "return 0 if n == 0" and return EOF as before.
The main argument is that it is impossible to determine if %n evaluated or not
when snprintf return 0, because it can happens for both n == 0 and n == 1.
Although EOF here is good indication of the end of process, if n is
decreased in the loop...
Since it is already supposed in many places that EOF *is* negative, f.e.
from Single Unix specs for snprintf
"return ... a negative value if an output error was encountered"
this not makes situation worse.
1997-12-24 14:32:40 +00:00
..
1997-10-16 14:41:25 +00:00
1997-10-21 08:41:15 +00:00
1997-10-21 08:41:15 +00:00
1997-11-23 17:58:55 +00:00
1997-10-21 08:41:15 +00:00
1997-10-26 10:37:35 +00:00
1997-10-21 08:41:15 +00:00
1997-11-23 17:58:55 +00:00