I\'d like to be able to do random access into a gzipped file. I can afford to do some preprocessing on it (say, build some kind of index), provided that the result of the pr
Have a look at this link (C code example).
/* zran.c -- example of zlib/gzip stream indexing and random access ...
Gzip is just zlib with an envelope.