1TICKIT_STRING_REF(3) Library Functions Manual TICKIT_STRING_REF(3)
2
3
4
6 tickit_string_ref, tickit_string_unref - adjust the refcount of a
7 counted string
8
10 #include <tickit.h>
11
12 TickitString *tickit_string_ref(TickitString *s);
13 void tickit_string_unref(TickitString *s);
14
15 Link with -ltickit.
16
18 tickit_string_ref() increments the stored refcount of the given counted
19 string instance by one. It returns the pointer argument itself, so it
20 is useful for chaining.
21
22 tickit_string_unref() decrements the stored refcount of the given
23 counted string instance by one. If the refcount drops to zero, the
24 instance is destroyed.
25
27 tickit_string_ref() returns a counted string instance pointer.
28 tickit_string_unref() returns no value.
29
31 tickit_string_new(3), tickit_string(7), tickit(7)
32
33
34
35 TICKIT_STRING_REF(3)