function: lx_check0()
USAGE:
char lx_check0(lx_s *s)
Ensure that
s->s
ends in a binary 0. If not, add one.
Note that
s
must be previously allocated.
PROPERTIES
return value
0 on success (1 otherwise)
allocation ensured
yes
previous allocation required
yes
SEE ALSO:
func_lx_cadd
-- add a given character to a string buffer
EXAMPLE:
int some_func (path) lx_s *path; { lx_check0 (path); return open (path->s, O_RDONLY); }
(c) 2001,
ari edelkind
lx_lib docs