Mail Archives: djgpp/1998/08/27/13:58:12
In article <6s2lob$4cr$1 AT nnrp1 DOT dejanews DOT com> you wrote:
> Is it possible to change the mode of stdout to binary? I've tried
> setmode(stdout, O_BINARY);
The trick is setmode needs a file *handle*, not a 'FILE*', as its
first argument. 'stdout' is a 'FILE*' variable, though. You should be
doing something like this:
setmode(fileno(stdout), O_BINARY);
(and #include the necessary header files, of course).
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -