Hi;
I want a way to remove leading and trailing whitespace from a string. I imagine i'm going to be making use of a loop and isspace(), but beyond this I cannot think how I can take in an array, trim the lead and trail to leave me with an array of just the middle bit.
Does anyone have and ideas / pointers?