Re: getline & getline_safe

Derek Robert Price <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs
Organization Ximbiot <http://ximbiot.com>
Message-ID <[email protected]>
Derek Robert Price wrote:

> Paul Eggert wrote:
>
>> Derek Robert Price <[email protected]> writes:
>
>>> If getline_safe() _is_ necessary, is there interest in importing it
>>> into GNULIB (it really just wraps a call to getdelim2())?  
>>
>>
>> I'd have interest, though I don't see how you can just wrap a call to
>> getdelim2.  Don't you also need to modify getdelim2's signature?
>
>
> Oops.  Yes.  I read too quickly and assumed that getdelim2() was just 
> the old getstr() in ccvs/lib/getline.c with a new name.
>
> So a new getndelim() function would be needed for wrapping or just the 
> getnline() function.


Incidentally, this implies having a getnline.c file which is always 
compiled, and possibly which getline.c is dependent on.  Is this 
reasonable?  The long run alternative is to get getndelim() & getnline() 
into libc.  I haven't really dealt with libc before.  Is _this_ 
reasonable?  Is this likely?

Derek

-- 
                *8^)

Email: [email protected]

Get CVS support at <http://ximbiot.com>!
-- 
I don't suffer from stress.  I'm a carrier.
	- Scott Adam's _Dilbert_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.