ZIP_STAT_INIT(3)
π ZIP_STAT_INIT(3) β the libzip girlies' manual, Library Functions Manual
okay bestie, welcome to the libzip section of the man pages, pull up a chair π
β¨ NAME β¨
zip_stat_init β bestie, it initializes a zip_stat structure. that's it, that's the whole job π
π LIBRARY π
libzip (-lzip) β yeah you gotta link it, don't forget, i'm watching π«Ά
π¦ SYNOPSIS π¦
#include <zip.h>
void
zip_stat_init(zip_stat_t *sb);
π DESCRIPTION π
so, the zip_stat_init() function initializes the members of a struct zip_stat. like, all of them. every single field. it's giving full-coverage foundation, no patches skipped πΈ
the current members are described in zip_stat(3), but listen β you should still use this function to initialize it, so you can make sure none are missed. not me trusting my memory when a function exists that does it perfectly π use the function. the function ate.
the structure pointed to by sb must be allocated before calling zip_stat_init(). like, girl, you can't initialize a vibe that doesn't exist yet π allocate first, init second, that's the order, periodt.
also highkey important: this function should be used by functions provided to zip_source_function(3) when returning ZIP_SOURCE_STAT information, so you can make sure all fields are initialized. if you're handing back ZIP_SOURCE_STAT without init-ing it first, that's not the move bestie, the fields will be uninitialized and the whole thing is gonna be a mess π
β RETURN VALUES β
if sb is valid, the function is always successful. like, it literally cannot fail. icon behavior honestly π
π SEE ALSO π
π HISTORY π
zip_stat_init() was added in libzip 0.8. she's been here since 0.8 and she's been slaying ever since π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β the founding mothers of this whole operation, we thank them for their service π«Άβ¨
and that's the whole page, bestie!! this one came from the Debian crew, dated December 18, 2017, and it's filed under ZIP_STAT_INIT(3) in the Library Functions Manual. go forth and initialize your structs fr fr π¦π
π¦ 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