function: lx_chop()


USAGE:
Remove the last n characters from string buffer s.

This is done by modifying s->len. lx_chop() does not deallocate or overwrite memory.


PROPERTIES
return value 0 on success (1 if n > s->len)
allocation ensured n/a
previous allocation required yes


SEE ALSO: EXAMPLE:


(c) 2001, ari edelkind
lx_lib docs