X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_scanw.3x.html;h=91b68292143bbeddc1e35baa573969f658e2b0e7;hp=b5997bcf17202adf1558a77c4c3184b1aa2b84f1;hb=a6eb34d7fec8170a8715f9e53ca2f96452dd30dd;hpb=5925150381bb42a4d8c7116d62c348a7b84309f3 diff --git a/doc/html/man/curs_scanw.3x.html b/doc/html/man/curs_scanw.3x.html index b5997bcf..91b68292 100644 --- a/doc/html/man/curs_scanw.3x.html +++ b/doc/html/man/curs_scanw.3x.html @@ -93,12 +93,12 @@
While scanw was implemented in 4BSD, none of the BSD releases used it until 4.4BSD (in a game). That early version of curses was before the - ANSI C standard. It did not use <varargs.h>, though that was avail- - able. In 1991 (a couple of years after SVr4 was generally available, - and after the C standard was published), other developers updated the - library, using <stdarg.h> internally in 4.4BSD curses. Even with this - improvement, BSD curses did not use function prototypes (or even - declare functions) in the <curses.h> header until 1992. + ANSI C standard. It did not use <varargs.h>, though that was + available. In 1991 (a couple of years after SVr4 was generally + available, and after the C standard was published), other developers + updated the library, using <stdarg.h> internally in 4.4BSD curses. + Even with this improvement, BSD curses did not use function prototypes + (or even declare functions) in the <curses.h> header until 1992. SVr2 documented scanw, wscanw tersely as "scanf through stdscr" and tersely as "scanf through win", respectively. @@ -144,16 +144,16 @@ is probably an editing error which was introduced in XSI, rather than being done intentionally. - o This implementation returns the number of items scanned, for com- - patibility with SVr4 curses. As of 2018, NetBSD curses also + o This implementation returns the number of items scanned, for + compatibility with SVr4 curses. As of 2018, NetBSD curses also returns the number of items scanned. Both ncurses and NetBSD curses call vsscanf to scan the string, which returns EOF on error. o Portable applications 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" con- - version at the end of the format string to ensure that something + 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.