title: Trim a string in C
body: <p>Briefly: </p>
  
  <p>I'm after the equivalent of .NET's <code>String.Trim</code> 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 <code>char*</code>). </p>
  
  <p>Given that there is <code>strchr</code>, <code>strtok</code>, and all manner of other string functions, surely there should be a trim function, or one that can be repurposed...</p>
  
  <p>Thanks</p>