dld@JMW.LARCH.CS.CMU.EDU (David Detlefs) (08/15/89)
Doug et. al. --
Consider the following program:
--------------------------------------------------
#include <stream.h>
void main() {
cout << "1111111111";
fprintf(stdout, "222222\n");
}
--------------------------------------------------
Using G++-1.35.0 and libg++ 1.35.0 on a uvax3, this produces the
following output:
[/JMW]:~/testing% bug5
1222222
1222222
11[/JMW]:~/testing%
Obviously files and streams don't coexist peacefully, as they do in
the AT&T implementation. Is this deliberate? Is it the case that
Files and streams coexist peacefully? If this was the design choice,
fine; if it wasn't, and this was supposed to work, I just wanted to
let you know that it didn't.
Thanks.
Dave
tpf@jdyx.UUCP (Tom Friedel) (08/16/89)
>-------------------------------------------------- >#include <stream.h> >void main() { > cout << "1111111111"; > fprintf(stdout, "222222\n"); >} >-------------------------------------------------- >Using G++-1.35.0 and libg++ 1.35.0 on a uvax3, this produces the >following output: ... bad output deleted ... I get the correct output on i386-sysv (also 1.35.0) Tom -- Tom Friedel Public Access Unix BBS tpf@prism.gatech.edu ...gatech!emory!jdyx!tpf (404) 320-7624 (404) 321-5020