I have a character array that is returned from a funciton. The array has a '\n' character at the end that I want to remove. How would I do that in an easy way? Is there a way that is easier than looping through the entire array char by char?