Mercurial > hg > octave-nkf > gnulib-hg
changeset 9733:969f2ce575c5
Change specification for the sake of ungetc on hypothetic platforms.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 29 Feb 2008 00:58:02 +0100 |
parents | e2d451509019 |
children | 80e0e25c2220 |
files | lib/freadptr.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/freadptr.h +++ b/lib/freadptr.h @@ -23,8 +23,9 @@ /* Assuming the stream STREAM is open for reading: Return a pointer to the input buffer of STREAM. - If freadahead (STREAM) > 0, the result is a pointer to freadahead (STREAM) - bytes. + If freadahead (STREAM) > 0, the result is either a pointer to + freadahead (STREAM) bytes, or NULL. The latter case can happen after + use of 'ungetc (..., STREAM)'. If freadahead (STREAM) == 0, the result is not usable; it may be NULL. In this case, you should use getc (STREAM), fgetc (STREAM), or fread (..., STREAM) to access the input from STREAM.