Incorporate existing strcasestr doc into new doc structure.
[gnulib.git] / doc / functions / fflush.texi
1 @node fflush
2 @section @code{fflush}
3 @findex fflush
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/fflush.html}
6
7 Gnulib module: fflush
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 @code{fflush} followed by @code{fseek} or @code{fseeko}, applied to an input
13 stream, should have the effect of positioning the underlying file descriptor.
14 It doesn't do this on some platforms.
15 @item
16 @code{fflush} on an input stream changes the position of the stream to the
17 end of the previous buffer, on some platforms: mingw.
18 @end itemize
19
20 Portability problems not fixed by Gnulib:
21 @itemize
22 @item
23 @code{fflush}, @code{ftell}, @code{ftello}, @code{fgetpos} behave incorrectly
24 on input streams that are opened in @code{O_TEXT} mode and whose contents
25 contains Unix line terminators (LF), on some platforms: mingw.
26 @item
27 On Windows platforms (excluding Cygwin), this function does not set @code{errno}
28 upon failure.
29 @end itemize