TICKIT_STRING_REF(3)
π TICKIT_STRING_REF(3) π
okay bestie, welcome to the Library Functions Manual page for tickit_string_ref, tickit_string_unref β the two lil functions that keep track of how many people are holding onto a counted string π
β¨ NAME β¨
tickit_string_ref, tickit_string_unref β adjust the refcount of a counted string π
πΈ SYNOPSIS πΈ
#include <tickit.h>
TickitString *tickit_string_ref(TickitString *s);
void tickit_string_unref(TickitString *s);
Link with -ltickit. π
π¦ DESCRIPTION π¦
so tickit_string_ref() does the most iconic thing: it increments the stored refcount of the given counted string instance by one. by one, exactly one, no cap. and then β the serve β it returns the pointer argument itself, so you can chain it. main character behavior fr fr β¨
tickit_string_unref() is the opposite vibe: it decrements the stored refcount of the given counted string instance by one. and if the refcount drops to zero? π the instance is destroyed. gone. no more. so like, don't be out here unref-ing stuff you still need, bestie, that's the whole game.
β RETURN VALUE β
tickit_string_ref()returns a counted string instance pointer π«Άtickit_string_unref()returns no value. nothing. void. it's giving silence π
π SEE ALSO π
and that's the page!! π this was TICKIT_STRING_REF(3), straight out of the Library Functions Manual β mwah, go forth and manage your refcounts responsibly, ily π§β¨
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms