[Zlib-devel] zlib 1.2.4.1 beta
John Bowler
jbowler at frontiernet.net
Sun Mar 28 21:27:47 EDT 2010
From: William A. Rowe Jr.
>which does leave me with a question, what purpose does the char *mode arg
>serve, in the gzdopen() API?
It tells the internal code whether this is a read ("r") or write ("w") stream and it tells gz_open (internal function in gzlib.c) what compression level (etc) to use for "w" ("0" to "9"). The "b" is ignored, and if a valid file descriptor is passed no attempt is made to change it to O_BINARY (though I guess the code could do that.)
Still, I suspect you are correct, that the stdin/stdout stuff just won't work anyway on WINCE.
BTW, there is a magic preprocessor symbol, _UWIN, which, if set, hides the non-_ system calls (including setmode) within at least the MinGW (not MinGWCE) io.h
John Bowler <jbowler at acm.org>
More information about the Zlib-devel
mailing list