Name
yw_setstr -- copy string into allocated buffer releasing previous content
Synopsis
char *yw_setstr
(char **dst,
const char *str);
DESCRIPTION
This function allocated strlen(str) + 1 bytes of memory
and copies str to *dst. If *dst wasn't NULL it
is freed.
RETURN VALUE
Pointer to allocated data (i.e. *dst). Caller is responsible
for releasing it using yw_free(3) when no longer needed.
SEE ALSO
yw_strdup
(3),
yw_free
(3),
INFO
Generated from: util.c,v 1.4 2001/05/11 10:38:05 malekith Exp.