[Top][All Lists]

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

Re: 01-getnline.diff

From: Jim Meyering
Subject: Re: 01-getnline.diff
Date: Thu, 17 Jul 2003 10:25:46 +0200

Derek Robert Price <derek@ximbiot.com> wrote:
> Incidentally, my glibc defines both getdelim & getline to return
> ssize_t.  Is it intentional that the GNULIB versions return int
> instead?

It looks like getline's `int' return type in gnulib is purely historical.
It dates back to the earliest revision I have, from textutils-1.12 (1995).
I see no reason for such a limitation.  ssize_t makes more sense.

FWIW, I too needed getdelim2 for coreutils, and moved it into a
separate file there.  If you do something similar for gnulib before
I get to it, that'd be great.

reply via email to

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