str_trunc (String, number)

Clips the given number of characters from the end of the string.

Parameters:

string character string to work
number number of characters to be clipped from the end of the string

Speed:

Fast

Example:

STRING* s = "Hello World";
...
str_trunc(s,6); // now s == "Hello"

See also:

str_cpy, str_cat, str_cmp, str_cmpi, str_cmpni, str_len, str_clip, str_stri