X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_get_wstr.3x.html;h=547eb16a1c16d5cbaf368d33ea15b97317fecdbd;hp=dc1a413c84eec993d35534c90ec0fe6e83d562b9;hb=30393be892025f03322b7907a04cc05cc08e8760;hpb=7d6371e47006c8aef4ac94f52998a35b03bf89cf;ds=inline diff --git a/doc/html/man/curs_get_wstr.3x.html b/doc/html/man/curs_get_wstr.3x.html index dc1a413c..547eb16a 100644 --- a/doc/html/man/curs_get_wstr.3x.html +++ b/doc/html/man/curs_get_wstr.3x.html @@ -26,7 +26,7 @@ * sale, use or other dealings in this Software without prior written * * authorization. * **************************************************************************** - * @Id: curs_get_wstr.3x,v 1.14 2018/07/28 22:15:59 tom Exp @ + * @Id: curs_get_wstr.3x,v 1.16 2018/09/01 20:58:10 tom Exp @ --> @@ -141,6 +141,24 @@ wchar_t is a unsigned type. All of the vendors implement this using wint_t, following the standard. + X/Open Curses issue 7 is unclear regarding whether the terminating null + wchar_t value is counted in the length parameter n. X/Open Curses is- + sue 7 revised the corresponding description of wgetnstr to address this + issue. The unrevised description of wget_nwstr can be interpreted ei- + ther way. This implementation counts the terminator in the length. + + X/Open Curses does not specify what happens if the length n is nega- + tive. + + o For analogy with wgetnstr, ncurses 6.2 uses a limit (based on + LINE_MAX). + + o Some other implementations (such as Solaris xcurses) do the same, + while others (PDCurses) do not allow this. + + o NetBSD 7 curses imitates ncurses 6.1 in this regard, treating a -1 + as an indefinite number of characters. +

SEE ALSO

        Functions: curses(3x), curs_get_wch(3x), curs_getstr(3x).