summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/lib_clear.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-12-24 14:32:40 +0000
committerache <ache@FreeBSD.org>1997-12-24 14:32:40 +0000
commit1756dc5a157c466f928bcb69ed3d7c608c90cf91 (patch)
tree718199723885916620fe3aa19c3daf962ffe1745 /lib/libncurses/lib_clear.c
parentb8a0fd9139fb9ad3f16b20315e576ff7df5eaa86 (diff)
downloadFreeBSD-src-1756dc5a157c466f928bcb69ed3d7c608c90cf91.zip
FreeBSD-src-1756dc5a157c466f928bcb69ed3d7c608c90cf91.tar.gz
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.
Diffstat (limited to 'lib/libncurses/lib_clear.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud