axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
char* axl_stream_strdup_n ( const char *  chunk,
int  n 

Allows to perform a copy for the n first bytes from the chunk received.

chunkThe chunk to copy
nHow many bytes to copy from the given chunk.
A newly allocated chunk, copied from the given chunk with a size of n bytes. The function will check that the chunk and the n values are not null and non-zero.

References axl_new, and axl_return_val_if_fail.