[Top][All Lists]

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

Re: [Bug-gnulib] getline & getline_safe

From: Derek Robert Price
Subject: Re: [Bug-gnulib] getline & getline_safe
Date: Tue, 15 Jul 2003 15:16:45 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Derek Robert Price wrote:

Paul Eggert wrote:

Derek Robert Price <derek@ximbiot.com> 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?



Email: derek@ximbiot.com

Get CVS support at <http://ximbiot.com>!
I don't suffer from stress.  I'm a carrier.
        - Scott Adam's _Dilbert_

reply via email to

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