ss_string_delete(3) - Linux man page

Name

ss_string_delete - deletes a substring

Synopsis

#include <sstrings2.h>

Linking with -lsstrings2

int ss_string_delete(ss_string *string, size_t pos, size_t len);

Description

The procedure ss_string_delete deletes the substring at position pos with length len from the string saved in string. string has to be initialized with ss_string_new. Note that len may be greater than the total number of characters to be deleted.

Returning value

The functions returns 1 on success, 0 otherwise

Error values for ss_errno

SS_NULL

if string is NULL

SS_EINVAL if string is an invalid ss_string object

SS_EINVAL if pos is equal or greater than the string length saved in string

Bugs

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

See Also

ss_string_new(3), ss_string_crop(3), ss_string_replace(3)

Referenced By

ss_string_insert(3), sstrings2(5)