binary stdin/stdout

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Jan 31 17:49:15 AEST 1989


In article <1842 at viper.Lynx.MN.Org> john at viper.Lynx.MN.Org (John Stanley) writes:
>	How does one write portable code to access stdin and stdout in
>	binary mode...?

You don't.  The three standard streams are preopened as text streams,
not binary, and there is no standard mechanism for changing this.  In
fact it may not even be possible to treat a text connection as binary
in some operating system environments.



More information about the Comp.lang.c mailing list