ZIP_GET_FILE_COMMENT(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_get_file_comment(3) β€” Library Functions Manual

okay bestie, welcome to the library functions corner of the manual, we're talking zip_get_file_comment(3) today and honestly? it's giving legacy. still cute tho. let's get into it πŸŽ€


πŸ¦‹ NAME

zip_get_file_comment β€” get comment for file in zip (obsolete interface πŸ‘΅)


🌸 LIBRARY

libzip (-lzip) β€” yes queen, link it with -lzip or she will NOT compile, no cap πŸ’€


✨ SYNOPSIS

#include <zip.h>

const char *
zip_get_file_comment(zip_t *archive, zip_uint64_t index, int *lenp,
    int flags);

look at her. const char * return type, four args, extremely vintage. we love a throwback 🫢


πŸ’– DESCRIPTION

so the way that zip_get_file_comment() works is: she is the obsolete version of zip_file_get_comment(3). like, the original. the blueprint. the main character before the glow-up ✨

the only differences between her and the new one are the types of the lenp and flags arguments. that's it. that's the whole diff. everything else? same energy, same job, just older types. iykyk 🌈


πŸ‘‘ SEE ALSO


⭐ HISTORY

okay so the lore πŸ“–:

  • zip_get_file_comment() was added in libzip 0.7. iconic debut.
  • in libzip 0.10, the type of index was changed from int to zip_uint64_t. glow-up era.
  • it was deprecated in libzip 0.11. use zip_file_get_comment() instead. it's not a vibe anymore bestie, she's retired πŸ’€

🧚 AUTHORS

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β€” the two legends who built her 🫢


and that's the whole page, periodt πŸ’… this little relic came from the Debian crew and got stamped with a date of December 18, 2017, filed under ZIP_GET_FILE_COMMENT(3) β€” go forth and use the non-obsolete one, mwah πŸŽ€βœ¨