zzip_compr_str(3)

πŸ“¦
version 0.13.78 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ zzip_compr_str ✨

ok so bestie, welcome to the zzip_compr_str(3) page β€” it's part of the zziplib Function List and it's genuinely so small and cute, we'll be done in like two minutes πŸ’–


🌸 NAME 🌸

zzip_compr_str β€” compr name. that's it, that's the whole name section, no cap 😌


πŸŽ€ SYNOPSIS πŸŽ€

#include <zzip/lib.h>

zzip_char_t*
zzip_compr_str(int compr)

πŸ¦‹ DESCRIPTION πŸ¦‹

ok so here's the vibe: zzip_compr_str hands you back a static const string of the known compression methods πŸ’… like, it's literally just translating a compression id into a lil string code for you.

and the way that it's static const?? so don't you dare try to free it or edit it, bestie, it's not yours, it's shared πŸ‘‘

now the plot twist πŸ™ˆ β€” if you pass in an Unknown id value, it doesn't throw a fit, it doesn't return NULL, it just quietly hands you back the string "zipped". iconic behaviour honestly. not me expecting an error and getting "zipped" instead 😭

so like:

  • known compression method id β†’ the string code for that method ✨
  • unknown id β†’ literally just "zipped" 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Guido Draheim <guidod@gmx.de> β€” the main character who made this happen πŸ’œ


Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL) 🧚


and that's the whole page bestie!! tysm for reading, stay zipped πŸ“βœ¨

zzip_compr_str(3) came to you from zziplib 0.13.78 πŸ’– bye babes!! πŸ‘‹πŸ’