TICKIT_STRING_NEW(3)
π NAME π
tickit_string_new β bestie, we're making a counted string β¨
πΈ SYNOPSIS πΈ
#include <tickit.h>
TickitString *tickit_string_new(const char *str, size_t len);
Link with -ltickit.
π DESCRIPTION π
okay so. tickit_string_new() creates a brand-new TickitString instance, and it gets initialised with the contents of the string buffer you hand it. that's it, that's the whole vibe π¦
The reference count of a freshly-constructed string instance? it's one. iconic. and you can bump it up or bring it down with tickit_string_ref(3) and tickit_string_unref(3). the way that when its reference count hits zero it gets destroyed π β yeah, that's the lifecycle, no cap.
not me reminding you that this is a counted string, so likeβ¦ mind the count bestie π
β RETURN VALUE β
If it all goes well, tickit_string_new() returns a pointer to the new instance. slay π
π SEE ALSO π
so this page lives in the Library Functions Manual, and it's literally called TICKIT_STRING_NEW(3) β that's the name up top and the name at the very bottom, so you always know where you are π«Ά no date on this one, just the title holding it down at both ends. mwah π
π¦ 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