bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ncurses man-page bugs wrt. mv* prefix functions.


From: Poul-Henning Kamp
Subject: ncurses man-page bugs wrt. mv* prefix functions.
Date: Thu, 12 Aug 2010 09:41:19 +0000

move() is documented in its man-page as returning ERR if the position
is outside the window:

       Specifically, they return an error if the window pointer is null, or if
       the position is outside the window.

This error carries over to some, and probably all mv* prefixed
function, such as mvprintw().


The manual page for the latter does not list this as a possible
error condition, saying only:

       X/Open defines no error conditions.  In this implementation,  an  error
       may be returned if it cannot allocate enough memory for the buffer used
       to format the results.  It will return an error if the  window  pointer
       is null.

I suggest adding text to the relevant manual pages, along the lines of:

        Functions with "mv" prefix will also return error if the
        position is outside the window.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
address@hidden         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]