X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_get_wstr.3x.html;h=69517d68af2ecdd693ebbc759792977d074fa75f;hp=de69ac8e62b83aadd8b00b0da111bfe9f328f933;hb=a8dfaf0998c91b39c5c0a4913987cd67ca622bff;hpb=bca50d0d8592defee6c584fdedd25f4b1a31345b diff --git a/doc/html/man/curs_get_wstr.3x.html b/doc/html/man/curs_get_wstr.3x.html index de69ac8e..69517d68 100644 --- a/doc/html/man/curs_get_wstr.3x.html +++ b/doc/html/man/curs_get_wstr.3x.html @@ -1,6 +1,6 @@ @@ -34,7 +34,7 @@ curs_get_wstr 3x - + @@ -141,6 +141,25 @@ wchar_t is a unsigned type. All of the vendors implement this using wint_t, following the standard. + X/Open Curses, Issue 7 (2009) is unclear regarding whether the termi- + nating null wchar_t value is counted in the length parameter n. X/Open + Curses, Issue 7 revised the corresponding description of wgetnstr to + address this issue. The unrevised description of wget_nwstr can be in- + terpreted either 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).