diff options
author | Bruno Haible <bruno@clisp.org> | 2007-05-14 21:36:29 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-05-14 21:36:29 +0000 |
commit | 1b343b87f94470fb214cbdb7eac5ea283dacab9b (patch) | |
tree | 582839f1cb8eabf84a6bd30306a77f742c68057f /lib/linebuffer.c | |
parent | 6b732f44acd622a550fbe8d3a98cd69d64aabc72 (diff) | |
download | gnulib-1b343b87f94470fb214cbdb7eac5ea283dacab9b.tar.gz |
Tweak doc.
Diffstat (limited to 'lib/linebuffer.c')
-rw-r--r-- | lib/linebuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/linebuffer.c b/lib/linebuffer.c index 6317271c2f..77f2a047a4 100644 --- a/lib/linebuffer.c +++ b/lib/linebuffer.c @@ -47,9 +47,9 @@ readlinebuffer (struct linebuffer *linebuffer, FILE *stream) } /* Read an arbitrarily long line of text from STREAM into LINEBUFFER. - Consder lines to be terminated by DELIMITER. + Consider lines to be terminated by DELIMITER. Keep the delimiter; append DELIMITER if it's the last line of a file - that ends in a character other than DELIMITER. Do not null terminate. + that ends in a character other than DELIMITER. Do not NUL-terminate. Therefore the stream can contain NUL bytes, and the length (including the delimiter) is returned in linebuffer->length. Return NULL when stream is empty. Return NULL and set errno upon |