Subject: Re: CVS commit: basesrc
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Simon Burge <simonb@netbsd.org>
List: source-changes
Date: 08/05/1999 19:18:58
Jason Thorpe wrote:

> On Thu, 05 Aug 1999 17:14:14 +1000 
>  matthew green <mrg@eterna.com.au> 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.