Source-Changes archive

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

Re: CVS commit: basesrc



Jason Thorpe wrote:

> On Thu, 05 Aug 1999 17:14:14 +1000 
>  matthew green <mrg%eterna.com.au@localhost> wrote:
> 
>  > which indicates that <string.h> _isn't_ ok.
> 
>  > perhaps <curses.h> needs a local copy of strlen() proto?  ick.
>
> I'd suggest making the things that call strlen() first-class functions
> in libcurses, rather than macros in curses.h.
> 

Since (I think) all the calls to strlen are in addstr() type functions,
and a negative string length in addstr() by definition means "the whole
string", maybe it's better to make __waddbytes() handle a negative
length the same way?

Simon.



Home | Main Index | Thread Index | Old Index