lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev outofmem() allocating memory


From: dickey
Subject: Re: lynx-dev outofmem() allocating memory
Date: Wed, 7 Apr 1999 05:03:58 -0400 (EDT)

> 
> > I think this behavior is same under other POSIX compliant targets; 
> > It makes sense to me that `fflush(stdout)' should flush it's buffer 
> > and allocate another. 
>  
> I'd consider it a bug in the library, especially allocating so much 
> more than it needs.  The one caveat is that, given that you are allowed 
> to supply your own buffer until the first write, it might be reasonable 
> for it to allocate its buffer on the first write. 

it's an implementation detail left unspecified by POSIX, which does not
focus on stdio.
  
> I guess the defence would be to allocate the buffer oneself. 

you can't


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

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