yw_strdup

Name

yw_strdup -- copy string into allocated buffer

Synopsis


     #include <yw/util.h>
   

char *yw_strdup(const char *str);

DESCRIPTION

This function allocated strlen(str) + 1 bytes of memory and copies str there.

RETURN VALUE

Pointer to allocated data. Caller is responsible for releasing it using yw_free(3) when no longer needed.

SEE ALSO

yw_setstr (3), yw_free (3),

INFO

Generated from: util.c,v 1.4 2001/05/11 10:38:05 malekith Exp.