void axl_stream_trim ( char *  chunk  ) 

Allows to trim the provided chunk, removing all white spaces (returns, white spaces, carry return and tabulars) that comes as preffix and suffix for the string provided, referenced by chunk.

The function retuns the reference to the new chunk already translated. The function doesn't perform any memory allocation. It uses the memory already used to hold the chunk provided, returning a pointer for the first item that is not a white space and nullifing the first item that is a white space behind the chunk.

This function is particular useful while getting the content

Parameters:
chunk The chunk to trim.