|
From: | Enrico Scholz |
Subject: | Re: [PATCH 1/3] use custom getline() implementation |
Date: | Mon, 21 Nov 2011 16:12:16 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Simon Josefsson <address@hidden> writes: > Have you looked at gnulib's linebuffer.c? It is also a getline-like > interface, but it should work line-by-line. See: > > http://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/linebuffer.c As it uses <stdio.h>'s FILE, it suffers from the same problem as getline(3). The getc() there might read multiple lines into the internal buffer and there is no way to check whether this buffer is empty. Enrico
[Prev in Thread] | Current Thread | [Next in Thread] |