c code example uses zlib.h