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-04-03 06:08:28 +00:00
1997-11-22 03:34:46 +00:00
1997-02-22 15:12:41 +00:00
1997-07-13 14:26:00 +00:00
1997-11-18 05:34:45 +00:00
1997-04-13 01:16:58 +00:00
1997-02-22 15:12:41 +00:00
1997-04-13 01:16:58 +00:00
1997-10-28 07:46:27 +00:00
1997-02-22 15:12:41 +00:00
1997-11-27 20:52:28 +00:00
1997-02-22 15:12:41 +00:00
1997-10-22 23:12:27 +00:00
1997-09-25 23:24:35 +00:00
1997-02-22 15:12:41 +00:00
1997-12-04 10:48:14 +00:00