void nopoll_trim ( char *  chunk,
int *  trimmed 
)

Removes white spaces and new lines characters from the string providing the count of bytes trimmed from the string.

Parameters
chunkThe chunk to trim.
trimmedAn optional reference that returns the count of bytes trimmed by the operation.