SS8_ERASE(3)                     Ssstr Manual                     SS8_ERASE(3)



NAME
       ss8_erase - erase a portion of an ssstr byte string

SYNOPSIS
       #include <ss8str.h>

       ss8str *ss8_erase(ss8str *str, size_t pos, size_t len);

DESCRIPTION
       ss8_erase() removes the substring of the ss8str at str starting at byte
       position pos and having length up to len (limited by the length of  the
       string).  Behavior is undefined unless str points to a valid ss8str ob‐
       ject and pos is less than or equal to the length of the string.

       The string is shortened by the number of bytes removed.  Any portion of
       the  original  string located after the removed substring is shifted to
       position pos.

RETURN VALUE
       ss8_erase() returns str.

SEE ALSO
       ss8_insert(3), ss8_replace(3), ss8_substr_inplace(3), ssstr(7)



SSSTR                             2023-12-30                      SS8_ERASE(3)