Mercurial > hg > octave-nkf > gnulib-hg
diff lib/linebuffer.c @ 8816:b8edbad1b48a
Tweak doc.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 14 May 2007 21:36:29 +0000 |
parents | 28d0ef9a0a36 |
children | bbbbbf4cd1c5 |
line wrap: on
line diff
--- a/lib/linebuffer.c +++ b/lib/linebuffer.c @@ -47,9 +47,9 @@ } /* 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