ZIP_SOURCE_MAKE_COMMAND_BITMAP(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_source_make_command_bitmap(3) πŸ’–

okay bestie, welcome to the manual page for zip_source_make_command_bitmap(3) β€” yes that's the whole name, she's long but she's worth it. sit down, grab a strawberry πŸ“, and let's get into it.


🌈 LIBRARY

libzip β€” link her with -lzip and you're golden, no cap.


✨ SYNOPSIS ✨

#include <zip.h>

zip_int64_t
zip_source_make_command_bitmap(zip_source_cmd_t command, ...);

πŸŽ€ DESCRIPTION πŸŽ€

so the way that zip_source_make_command_bitmap() works is genuinely iconic. she returns a bitmap of source commands β€” and that bitmap is literally designed to be handed back as the return value for ZIP_SOURCE_SUPPORTS. like, that's her whole job, and she ate. πŸ’…

and which commands end up in that bitmap? all the commands from the argument list. every single one you pass in. but β€” and this is the important part, don't skip it β€” that argument list must be terminated by -1. the -1 is the little "that's all, bestie, we're done here" signal. forget it and things get weird. don't forget it. 🫢


πŸ‘€ SEE ALSO

go read those too, they're the supporting cast and they understood the assignment. 🌸


πŸ“œ HISTORY

zip_source_make_command_bitmap() was added in libzip 1.0. she's been serving since day one, periodt. ✨


πŸ‘‘ AUTHORS

  • Dieter Baron <dillo@nih.at>
  • Thomas Klausner <wiz@gatalith.at>

absolute legends, both of them. bow down. πŸ™‡β€β™€οΈ


and that's the whole page, bestie!! this one came to you via Debian, dated December 18, 20, and it's the ZIP_SOURCE_MAKE_COMMAND_BITMAP(3) page you just read, so now you know exactly which page you were on the whole time. go forth and build those bitmaps, i'm obsessed with you. πŸ’–βœ¨πŸ¦‹