bug-ncurses
[Top][All Lists]
Advanced

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

Standards question wrt winnstr & friends


From: Mike Aubury
Subject: Standards question wrt winnstr & friends
Date: Tue, 2 May 2006 16:39:09 +0100
User-agent: KMail/1.8.3

Just trying to get the ncurses libform compiled with pdcurses - noticed a 
slight difference..


Looking at the return values for the pdcurses winnstr family of functions:

        All functions return OK on success and ERR on error.

Whereas the ncurses functions :


       All of the functions return ERR upon failure, or the number of 
characters actually read into the string.



As the libform files "frm_driver.c" function Windows_To_Buffer makes use of 
this count - its causing me troubles (as pdcurses is returning 0!)

For now - I'm working around it in my version of the libform code - but which 
is the "right" return value ?


Any thoughts ?



-- 
Mike Aubury





reply via email to

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