Trim a string in C [duplicate]

There is no standard library function to do this, but it’s not too hard to roll your own. There is an existing question on SO about doing this that was answered with source code.

Leave a Comment