ZT_PACK_POINTER(3)
π zt_pack_pointer β the NAME section, bestie π
okay so first things first, this whole thing lives in the LOCAL manual, and it's literally called zt_pack_pointer β and what it does is pack an opaque pointer into a variant. that's the whole vibe. that's the assignment. π
β¨ SYNOPSIS β¨
like, here's the tea, copy it exactly bestie:
#include <zt.h>
zt_value
zt_pack_pointer(const void *value, const char *source);
π¦ that's it. that's the whole function signature. slay.
πΈ DESCRIPTION πΈ
so zt_pack_pointer takes an opaque pointer β yes, opaque, we don't ask questions about what's inside it, we respect its privacy π
β and it also takes the string that describes the expression you evaluated to get that pointer, and it packs both of them into a variant-like zt_value. two things in, one adorable little zt_value out. it's giving efficient. it's giving wrapped up with a bow. π
and the source argument? bestie, it gets retained by the value β like, the zt_value keeps it around, it does not let go β and it's typically a constant string literal that the preprocessor produced. iykyk. the preprocessor is the main character here, honestly. π
π§ IMPLEMENTATION NOTES π§
real talk for a second:zt_pack_pointeris only provided as astatic inlinefunction. that's it. that's the only way it comes. no cap. π
π RETURN VALUES π
it returns the packed value. periodt. π
π₯ SEE ALSO π₯
okay so here's the list, and i am being so fr fr right now β i am copying these exactly as they appear, duplicates and all, because the rule is we do not edit the manpage, we only serve cunt π :
zt_pack_nothing(3)zt_pack_pointer(3)zt_pack_rune(3)zt_pack_pointer(3)zt_pack_pointer(3)zt_pack_pointer(3)zt_pack_pointer(3)zt_pack_pointer(3)zt_value(3)
(yes bestie, zt_pack_pointer shows up a lot in its own SEE ALSO. that's not me being messy, that's literally what the page says. iconic behaviour honestly. β¨)
π HISTORY π
zt_pack_pointer first appeared in libzt 0.1. a true original. a legend. the blueprint. π
π«Ά AUTHORS π«Ά
shoutout to Zygmunt Krynicki <me@zygoon.pl> for bringing this little cutie into the world. thank you for your service, king. π
and that's the whole page bestie!! πβ¨ this was libzt 0.3.1, dated January 12, 2020 β mwah, obsessed, go pack a pointer, you've got this π¦πΈ
π¦ where this page comes from
- debian bookworm: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- debian trixie: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu jammy: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu noble: libzt-doc 0.3.1-4build1 Β· LGPL-3.0-only
- ubuntu questing: libzt-doc 0.3.1-4build1
- ubuntu resolute: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- ubuntu stonking: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms