On Tue, Apr 25, 2006 at 09:44:06PM +0200, Michael Kerrisk wrote:
> Hello Justin,
> 
> > $subject.  for () fgets() is commonly used to read a line of unknown
> > length, functionality which is already implemented (with a
> > probably-better implementation) in getline().  This is glibc specific,
> > but it is my understanding that sufficiently gnuish people can use it
> > portably with some gnulib foo.
> 
> Can you be more precise -- give me some further detail on the last 
> sentence?
Just a bit (I'm not sufficiently GNUish).  I've seens lots of software
that inclues, for example, getopt.c.  I've worked with code that has
its own dirname.c and basename.c.  And I have a particular use for an
asprintf.c, though I don't actually know how to this the right way
(yet!).

On Debian, we have /usr/share/gnulib/lib/getline.c which you're
supposed to be able to pull into your own projects using this strange
/usr/bin/gnulib-tool foo.  The idea being that you can work in a "gnu
environment" even when not linking against glibc.

This is deliberately true for pretty much all the gnu specific stuff.
I just think it would be convenient to reference the function to make
it more easily visible.

That is the full extant of my current knowledge here :/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to