ZT_PACK_RUNE(3)
π zt_pack_rune(3) π
okay bestie, so this is a page from the LOCAL manual, and it's literally all about one lil function in libzt. sit down, hydrate, we're doing this πΈ
β¨ NAME β¨
zt_pack_rune β pack a character into a variant π
π SYNOPSIS π
#include <zt.h>
zt_value
zt_pack_rune(int value, const char *source);
like, that's it. that's the whole vibe check right there π¦
π DESCRIPTION π
so what does it DO? zt_pack_rune packs a rune, plus the string that describes the expression you evaluated to get that rune, into a variant-like zt_value. two for one, no cap π
the source argument is retained by the value β it doesn't get copied or thrown away, it sticks around. and it's typically a constant string literal produced by the preprocessor. iykyk β¨
now, runes. runes are generalized characters. unlike char, they are never negative, and you can think of them as Unicode code points. yes queen, actual unicode, we're cultured here π
π§ IMPLEMENTATION NOTES π§
okay so here's the tea π: zt_pack_rune() compensates for signed negative characters by masking them with 0xFF. that's the whole note. go off, little mask π
π RETURN VALUES π
the packed value. that's it. she returns the value she packed, as one does π
π«Ά SEE ALSO π«Ά
zt_pack_nothing(3)zt_pack_integer(3)zt_pack_rune(3)zt_pack_integer(3)zt_pack_unsigned(3)zt_pack_string(3)zt_pack_pointer(3)zt_value(3),
(and yes, zt_pack_integer(3) shows up twice and there's a lil missing comma in there β we don't fix the family tree, we just love it as it is ππ)
β HISTORY β
zt_pack_rune first appeared in libzt 0.1. a true original. main character from day one π
π AUTHORS π
Zygmunt Krynicki <me@zygoon.pl> β thank you for your service, king π«‘π
this iconic lil page comes from libzt 0.3.1, dated January 12, 2020, and it lives in the LOCAL manual. mwah, stay hydrated, and go pack some runes bestie π
β¨π¦πΈ
π¦ 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