function: lx_free()
USAGE:
void lx_free(lx_s *s)
Free
s
, and set s->s back to 0.
PROPERTIES
return value
void
allocation ensured
n/a
previous allocation required
yes (error checks)
SEE ALSO:
func_lx_zfree
-- zero a string structure, then call lx_free()
func_lx_alloc
-- allocate a string struct not yet used
EXAMPLE:
{ lx_s ns = {0}; lx_strset (&ns, "some string\n"); lx_strout (1, &ns); lx_free (&ns); }
(c) 2001,
ari edelkind
lx_lib docs