Lines Matching refs:stream
25 >WHAT: < 1) check that freopen substitutes the named file in place of stream.
26 >HOW: < 1) open a stream, write something to it, perform freopen and
27 < write some more. Check that second write to stream went to
52 FILE *stream;
70 if ((stream = fopen(tempfile1, "a+")) == NULL) {
75 fwrite("a", 1, 1, stream);
76 if ((stream = freopen(tempfile2, "a+", stream)) == NULL) {
80 fwrite("a", 1, 1, stream);
81 fclose(stream);
84 if ((stream = fopen(tempfile1, "r")) == NULL) {
90 fread(buf, 1, 1, stream);
96 fclose(stream);
98 if ((stream = fopen(tempfile2, "r")) == NULL) {
104 fread(buf, 1, 1, stream);
110 fclose(stream);