[Top][All Lists]

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

Re: Standards question wrt winnstr & friends

From: William McBrine
Subject: Re: Standards question wrt winnstr & friends
Date: Tue, 2 May 2006 13:28:16 -0400 (EDT)

On Tue, 2 May 2006, William McBrine wrote:

According to the standard:


Upon successful completion, innstr(), mvinnstr(), mvwinnstr() and
winnstr() return the number of characters actually read into the string.

Otherwise, all these functions return ERR.

So ncurses' behavior is correct.

...although, on further examination, the standard also says this:

 Upon successful completion, instr(), mvinstr(), mvwinstr() and winstr()
 return OK.

which ncurses does NOT do. (It passes the number of characters for both groups.) Granted, there's probably no benefit in conforming here.

William McBrine <address@hidden>

reply via email to

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