function: lx_chomp()


USAGE:
Remove all ending characters located in cstr from string buffer s.

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


PROPERTIES
return value 0 on success (1 on out-of-memory error)
allocation ensured n/a
previous allocation required yes


SEE ALSO: EXAMPLE:


(c) 2001, ari edelkind
lx_lib docs