60 char tmp[256] = { 0 };
64 for (; *compr_ops; compr_ops++)
68 len += snprintf(tmp + len,
sizeof(tmp) - len,
", ");
70 len += snprintf(tmp + len,
sizeof(tmp) - len,
"%s", (*compr_ops)->name);
85 if (!compr || !*compr)
88 for (; *compr_ops; compr_ops++)
const char * compress_list(void)
Get a list of compression backend names.
const struct ComprOps * compress_get_ops(const char *compr)
Get the API functions for a compress backend.
static const struct ComprOps * CompressOps[]
Backend implementations.
const struct ComprOps compr_zlib_ops
const struct ComprOps compr_lz4_ops
const struct ComprOps compr_zstd_ops
Convenience wrapper for the library headers.
char * mutt_str_dup(const char *str)
Copy a string, safely.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.