logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tickit_string_new - create a counted string

Description

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.

Name

       tickit_string_new - create a counted string

Return Value

       If successful, tickit_string_new() returns a pointer to the new instance.

See Also

tickit_string_get(3), tickit_string(7), tickit(7)

                                                                                            TICKIT_STRING_NEW(3)

Synopsis

#include<tickit.h>TickitString*tickit_string_new(constchar*str,size_tlen);

       Link with -ltickit.

See Also