Painless way to trim leading/trailing whitespace in C?
- by coledot
Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution.