X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_scanw.3x.html;h=ed3fd6e84c59122f8558111e543f19526b9232d4;hp=b96870cd772d4708ce04a016cefc926104e5be63;hb=8d3ea9021573747ecd129228ba7782a03243f62c;hpb=ed646e3f683083e787c6ba773364401dc9fa9d40 diff --git a/doc/html/man/curs_scanw.3x.html b/doc/html/man/curs_scanw.3x.html index b96870cd..ed3fd6e8 100644 --- a/doc/html/man/curs_scanw.3x.html +++ b/doc/html/man/curs_scanw.3x.html @@ -26,7 +26,7 @@ * sale, use or other dealings in this Software without prior written * * authorization. * **************************************************************************** - * @Id: curs_scanw.3x,v 1.18 2017/04/17 00:07:02 tom Exp @ + * @Id: curs_scanw.3x,v 1.19 2017/11/21 00:46:31 tom Exp @ --> @@ -96,11 +96,11 @@ for both, because that header is included in <curses.h>. Both XSI and The Single Unix Specification, Version 2 state that these - functions return ERR or OK. Since the underlying scanf(3) can return + functions return ERR or OK. Since the underlying scanf(3) can return the number of items scanned, and the SVr4 code was documented to use this feature, this is probably an editing error which was introduced in XSI, rather than being done intentionally. Portable applications - should only test if the return value is ERR, since the OK value (zero) + should only test if the return value is ERR, since the OK value (zero) is likely to be misleading. One possible way to get useful results would be to use a "%n" conversion at the end of the format string to ensure that something was processed.