string | character string to work |
number | number of characters to be clipped from the end of the string |
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