char* axl_stream_strdup ( const char *  chunk  ) 

Allows to copy the given chunk, supposing that is a properly format C string that ends with a '\0' value.

This function allows to perform a copy for the given string. If a copy limited by a size is required, use axl_stream_strdup_n.

Parameters:
chunk The chunk to copy
Returns:
A newly allocated string or NULL if fails.