ZIP_COMPRESSION_METHOD_SUPPORTED(3)
π 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
compressis 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 π§ββοΈπ π
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2020 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms