Briefly:
I’m after the equivalent of .NET’s String.Trim in C using the win32 and standard C api (compiling with MSVC2008 so I have access to all the C++ stuff if needed, but I am just trying to trim a char*).
Given that there is strchr, strtok, and all manner of other string functions, surely there should be a trim function, or one that can be repurposed…
Thanks
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.