ldivmod, uldivmod: fix qdivrem calls
[minix.git] / common / dist / zlib / contrib / iostream / test.cpp
blob7d265b3b5c0e017bfa7270b766d5354feddf1c4d
2 #include "zfstream.h"
4 int main() {
6 // Construct a stream object with this filebuffer. Anything sent
7 // to this stream will go to standard out.
8 gzofstream os( 1, ios::out );
10 // This text is getting compressed and sent to stdout.
11 // To prove this, run 'test | zcat'.
12 os << "Hello, Mommy" << endl;
14 os << setcompressionlevel( Z_NO_COMPRESSION );
15 os << "hello, hello, hi, ho!" << endl;
17 setcompressionlevel( os, Z_DEFAULT_COMPRESSION )
18 << "I'm compressing again" << endl;
20 os.close();
22 return 0;