Logo Search packages:      
Sourcecode: bglibs version File versions

void str_rcut ( str s,
unsigned  count 
)

Cut count bytes from the right (end) of the string

Definition at line 22 of file cut.c.

References len, and str_truncate().

{
  unsigned newlen;
  newlen = (s->len < count) ? 0 : s->len - count;
  str_truncate(s, newlen);
}


Generated by  Doxygen 1.6.0   Back to index