Search code examples
cwrapperzlib

zlib c decompress


I'm looking for a simple C Wrapper of zlib, to decompress a byte array. Anyone knows one ?


Solution

  • By wrapper function, you probably mean some simpler to use, more self-contained functions?

    Zlib contains them. Have a look in the manual under "Utility Functions".

    You're probably look for:

    ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
                                       const Bytef *source, uLong sourceLen));