PURPOSE: This code is used to check the suitability of zlib for writing and reading compressed histogram data. NOTE: zlib will transparently read uncompressed files. 2007-02-15 Test reading and writing sequences of 1 to 16M ints (PASSED). mkdata.c: Makes a zipped file containing a sequence of ints starting from 0. rdata.c: Reads a zipped/unzipped file expecting a sequence of ints starting from 0, max=16M ints. USAGE: make ./mkdata To make data.gz ./rdata data.gz To reada data.gz Then gunzip data.gz and run ./rdata data To test reading uncompressed files. To change the number of ints written, edit mkdata.c and change the DATALENGTH. To change the maximum number of ints that rdata.c can read, changed the DATALENGTH in rdata.c