ZIP_COMPRESSION_METHOD_SUPPORTED(3)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ZIP_COMPRESSION_METHOD_SUPPORTED(3) πŸ’–

okay bestie, welcome to the Library Functions Manual, this is zip_compression_method_supported(3) and she is literally just here to answer one (1) question for you 🌸


✨ NAME ✨

zip_compression_method_supported β€” returns whether a compression method is supported or not, that's the whole job, that's the gig 🫢


πŸ“š LIBRARY πŸ“š

libzip (-lzip) β€” link her in and you're good πŸ’…


🌈 SYNOPSIS 🌈

#include <zip.h>

int
zip_compression_method_supported(zip_int32_t method, int compress);

πŸ¦‹ DESCRIPTION πŸ¦‹

so zip_compression_method_supported() tells you if the compression method method is supported. and like, supported for what, you ask? depends on compress, bestie:

  • if compress is zero β†’ we're asking about compression (squishing files down)
  • otherwise β†’ we're asking about decompression (un-squishing them back out)

that's it. that's the vibe check. no cap 😌


πŸ’« RETURN VALUES πŸ’«

  • 1 β€” slay, the method is supported πŸ‘‘
  • 0 β€” nope, not supported πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

the whole friend group fr fr πŸ’–


πŸ•°οΈ HISTORY πŸ•°οΈ

zip_compression_method_supported() was added in libzip 1.7.0 β€” she's not new new, she's been iconic for a minute ✨


πŸŽ€ AUTHORS πŸŽ€

  • Dieter Baron <dillo@nih.at>
  • Thomas Klausner <wiz@gatalith.at>

absolute legends, we stan πŸ’œ


and that's the whole page!! this one came from Debian, dated April 2 β€” mwah, go forth and check your compression methods responsibly πŸ§šβ€β™€οΈπŸ’…πŸ“