ZIP_SET_FILE_COMMENT(3)
β¨ ZIP_SET_FILE_COMMENT(3) β¨
ok so bestie, we're in the Library Functions Manual section of the ZIP_SET_FILE_COMMENT(3) page and it's giving "vintage but still iconic" π
because this function is literally the obsolete interface. it's the grandma of comment-setters. we respect her. we just don't call her anymore. periodt. π
πΈ NAME πΈ
zip_set_file_comment β set comment for file in zip (obsolete interface)
π LIBRARY π
libzip (-lzip)
π¦ SYNOPSIS π¦
#include <zip.h>
int
zip_set_file_comment(zip_t *archive, zip_uint64_t index,
const char *comment, int len);
π DESCRIPTION π
okok so here's the tea β β zip_set_file_comment() is the obsolete version of zip_file_set_comment(3). like, the old model. the original recipe. π
the only differences between them are:
- the type of the
lenargument, and - the extra
flagsargument that the new one has and this one doesn't.
and that's it. no cap. so zip_set_file_comment() is literally the same as calling zip_file_set_comment(3) with an empty flags argument. that's the whole vibe. π«Ά
β οΈ bestie this one is obsolete β if you're writing new code, go say hi to zip_file_set_comment(3) instead π
π SEE ALSO π
π HISTORY π
so the timeline is giving main character arc β¨:
zip_set_file_comment()was added in libzip 0.7. π- in libzip 0.10, the type of
indexwas changed frominttozip_uint64_t. glow-up fr fr. - it was deprecated in libzip 0.11 β so like, use
zip_file_set_comment()instead. no more old interface, babe. π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β absolute icons, we love them, mwah π
and that's the whole page bestie!! this one came from the Debian crew, dated December 18, 2017, and it lives under ZIP_SET_FILE_COMMENT(3) πβ¨ go set some comments, but do it the non-obsolete way, i'm begging ππ¦
π¦ 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) 2006-2017 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