bug-ncurses
[Top][All Lists]
Advanced

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

Re: help to design ui for jabber client:)


From: Avery Pennarun
Subject: Re: help to design ui for jabber client:)
Date: Sun, 2 Dec 2007 15:08:25 -0500

On 02/12/2007, Thomas Dickey <address@hidden> wrote:
> On Sun, 2 Dec 2007, Avery Pennarun wrote:
> > I don't think new_form() sets errno, according to the man page, so
> > looking at its value is probably misleading.
>
> RETURN VALUE
>         The  function  new_form returns NULL on error.  It sets errno 
> according
>         to the function's success:
> ...
>         E_SYSTEM_ERROR
>              System error occurred, e.g., malloc failure.
>
> (why it's getting a malloc problem - I don't know)

I must have an old version of the man page:

       The function new_form returns NULL on error.

       The function free_form returns one of the following:

       E_OK The routine succeeded.

       E_SYSTEM_ERROR
            System error occurred (see errno).

       (etc)

>From this, I would assume that errno should never be E_SYSTEM_ERROR,
since it tells you to *look* at errno to find which system error it
was.  And that only free_form sets errno at all.  Clearly the
implication is different in the version you quoted.

(Man page from Ubuntu libncurses5-dev version 5.5-1ubuntu3.)

Have fun,

Avery




reply via email to

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