* 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 @
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
-<meta name="generator" content="Manpage converted by man2html - see http://invisible-island.net/scripts/readme.html#others_scripts">
+<meta name="generator" content="Manpage converted by man2html - see https://invisible-island.net/scripts/readme.html#others_scripts">
<TITLE>curs_scanw 3x</TITLE>
<link rev=made href="mailto:bug-ncurses@gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
for both, because that header is included in <STRONG><curses.h</STRONG>>.
Both XSI and The Single Unix Specification, Version 2 state that these
- functions return ERR or OK. Since the underlying <STRONG>scanf(3)</STRONG> can return
+ functions return <STRONG>ERR</STRONG> or <STRONG>OK</STRONG>. Since the underlying <STRONG>scanf(3)</STRONG> 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 <STRONG>ERR</STRONG>, since the <STRONG>OK</STRONG> 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.