1TICKIT_STRING_NEW(3) Library Functions Manual TICKIT_STRING_NEW(3)
2
3
4
6 tickit_string_new - create a counted string
7
9 #include <tickit.h>
10
11 TickitString *tickit_string_new(const char *str, size_t len);
12
13 Link with -ltickit.
14
16 tickit_string_new() creates a new TickitString instance. It will be
17 initialised with the contents of the given string buffer.
18
19 The reference count of a newly-constructed string instance will be one.
20 This can be incremented or decremented using tickit_string_ref(3) and
21 tickit_string_unref(3). When its reference count reaches zero it is
22 destroyed.
23
25 If successful, tickit_string_new() returns a pointer to the new
26 instance.
27
29 tickit_string_get(3), tickit_string(7), tickit(7)
30
31
32
33 TICKIT_STRING_NEW(3)