June 2025
Intermediate to advanced
1093 pages
33h 24m
English
The demonstration program creates a compressed output file from any input file. Only three functions from zlib are needed for this. The documentation contains a lot of information about those functions, which I recommend you read. I focus here on the information in the header file or the function signatures from the documentation (some things are simplified). For your own experiments and to replicate the examples, you should of course use the original library:
typedef struct gzFile_s *gzFile;extern "C" gzFile gzopen (const char *path, const char *mode);extern "C" int gzwrite (gzFile file, voidpc buf, unsigned len);extern "C" int gzclose (gzFile file);
These and many other types and functions are available to you when you include ...
Read now
Unlock full access