axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
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.

chunkThe chunk to copy
A newly allocated string or NULL if fails.

References axl_new.

Referenced by axl_strdup().