silc_sstrdup

SYNOPSIS

    char *silc_sstrdup(SilcStack stack, const char *str);

DESCRIPTION

Duplicates the string indicated by `str' and returns the duplicated string. Returns NULL on error.

NOTES

Be careful with this function: do not free the returned pointer explicitly and do not save the returned pointer to a permanent location.

If `stack' is NULL this function calls silc_strdup.