summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/getw.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/getw.c')
-rw-r--r--newlib/libc/stdio/getw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/stdio/getw.c b/newlib/libc/stdio/getw.c
index b5065bd53..210c5939a 100644
--- a/newlib/libc/stdio/getw.c
+++ b/newlib/libc/stdio/getw.c
@@ -37,14 +37,15 @@ to get the next word from the file or stream identified by <[fp]>. As
a side effect, <<getw>> advances the file's current position
indicator.
-RETURNS The next word (read as an <<int>>), unless there is no more
-data, or the host system reports a read error; in either of these
+RETURNS
+The next word (read as an <<int>>), unless there is no more
+data or the host system reports a read error; in either of these
situations, <<getw>> returns <<EOF>>. Since <<EOF>> is a valid
<<int>>, you must use <<ferror>> or <<feof>> to distinguish these
situations.
PORTABILITY
-<<getw>> is a remnant of K&R C, it is not part of any ISO C Standard.
+<<getw>> is a remnant of K&R C; it is not part of any ISO C Standard.
<<fread>> should be used instead. In fact, this implementation of
<<getw>> is based upon <<fread>>.