---
name: "zip_compression_method_supported"
section: "3"
platform: "linux"
package: "libzip"
version: "1.11.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zip_compression_method_supported"
---

# zip\_compression\_method\_supported(3)

return if a compression method is supported

## NAME

**zip\_compression\_method\_supported** – return if a compression method is supported

## LIBRARY

libzip (-lzip)

## SYNOPSIS

**#include \<zip.h\>**

*int*\

**zip\_compression\_method\_supported**(*zip\_int32\_t method*, *int compress*);

## DESCRIPTION

The **zip\_compression\_method\_supported**() returns if the compression method *method* is supported for compression (if *compress* is zero) or decompression (otherwise).

## RETURN VALUES

Returns 1 if the method is supported, 0 otherwise.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_encryption\_method\_supported(3)](/zip_encryption_method_supported/3.md), [zip\_set\_file\_compression(3)](/zip_set_file_compression/3.md)

## HISTORY

**zip\_compression\_method\_supported**() was added in libzip 1.7.0.

## AUTHORS

Dieter Baron ⟨*dillo@nih.at*⟩ and Thomas Klausner ⟨*wiz@gatalith.at*⟩
