ss_string_new(3) - Linux man page

Name

ss_string_new - creates a new ss_string object

Sinopsys

#include <sstrings2.h>

Linking with -lsstrings2

ss_string *ss_string_new(const char *init);

Description

This function creates a new ss_string object where init is the initial C-String to be saved.

The memory space for the string pointed by init is allocated dynamically and it must be freed by the programmer using ss_string_free(3) or ss_string_gc_free(3).

The memory space for the ss_string object is allocated dynamically and it must be freed by the programmer using ss_string_free(3).

Returning value

ss_string_new return a pointer to a dynamically allocated ss_string object, NULL if there is no memory left.

Error values for ss_errno

SS_NOMEM if there is no memory left

SS_NULL

if init is NULL

Bugs

Please report your bugs to yanezp@informatik.uni-freiburg.de

See Also

ss_string_free(3), ss_string_gc_free(3)

Referenced By

ss_string_append(3), ss_string_copy(3), ss_string_delete(3), ss_string_insert(3), ss_string_rcrop_c_string(3), ss_string_rreplace(3), ss_string_strcmp(3), ss_string_trim(3), sstrings2(5)