tickit_string_new
create a counted string
- Provided by: libtickit-dev (Version: 0.4.3-1.1build1)
- Source: libtickit
- Report a bug
create a counted string
#include <tickit.h> TickitString *tickit_string_new(const char *str, size_t len);
Link with -ltickit.
tickit_string_new() creates a new TickitString instance. It will be initialised with the contents of the given string buffer.
The reference count of a newly-constructed string instance will be one. This can be incremented or decremented using tickit_string_ref(3) and tickit_string_unref(3). When its reference count reaches zero it is destroyed.
If successful, tickit_string_new() returns a pointer to the new instance.