diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:37 -0700 |
commit | 4b5a43a219d51066c01ff2ab86af18b967f2d0dd (patch) | |
tree | 4dcaf0cd18751d04cf638a9a6ec521990d4f2e90 /contrib/iostream3/test.cc | |
parent | 086e982175da84b3db958191031380794315f95f (diff) | |
download | zlib-1.2.0.5.tar.gz zlib-1.2.0.5.tar.bz2 zlib-1.2.0.5.zip |
zlib 1.2.0.5v1.2.0.5
Diffstat (limited to 'contrib/iostream3/test.cc')
-rw-r--r-- | contrib/iostream3/test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/iostream3/test.cc b/contrib/iostream3/test.cc index 9ffa8be..9423533 100644 --- a/contrib/iostream3/test.cc +++ b/contrib/iostream3/test.cc | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Test program for gzifstream and gzofstream | 2 | * Test program for gzifstream and gzofstream |
3 | * | 3 | * |
4 | * by Ludwig Schwardt <schwardt@sun.ac.za> | 4 | * by Ludwig Schwardt <schwardt@sun.ac.za> |
5 | * original version by Kevin Ruland <kevin@rodin.wustl.edu> | 5 | * original version by Kevin Ruland <kevin@rodin.wustl.edu> |
6 | */ | 6 | */ |
@@ -13,15 +13,15 @@ int main() { | |||
13 | gzofstream outf; | 13 | gzofstream outf; |
14 | gzifstream inf; | 14 | gzifstream inf; |
15 | char buf[80]; | 15 | char buf[80]; |
16 | 16 | ||
17 | outf.open("test1.txt.gz"); | 17 | outf.open("test1.txt.gz"); |
18 | outf << "The quick brown fox sidestepped the lazy canine\n" | 18 | outf << "The quick brown fox sidestepped the lazy canine\n" |
19 | << 1.3 << "\nPlan " << 9 << std::endl; | 19 | << 1.3 << "\nPlan " << 9 << std::endl; |
20 | outf.close(); | 20 | outf.close(); |
21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" | 21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" |
22 | << "The quick brown fox sidestepped the lazy canine\n" | 22 | << "The quick brown fox sidestepped the lazy canine\n" |
23 | << 1.3 << "\nPlan " << 9 << std::endl; | 23 | << 1.3 << "\nPlan " << 9 << std::endl; |
24 | 24 | ||
25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; | 25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; |
26 | inf.open("test1.txt.gz"); | 26 | inf.open("test1.txt.gz"); |
27 | while (inf.getline(buf,80,'\n')) { | 27 | while (inf.getline(buf,80,'\n')) { |