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

chunkThe chunk to trim.

References axl_stream_trim_with_size().

Referenced by axl_item_are_equal_full(), and axl_node_get_attribute_value_trimmed().