, non-MFC functions to trim whitespace from a string.
- _tcsltrim() - Remove leading whitespace.
- _tcsrtrim() - Remove trailing whitespace.
How To Use
XTrim functions into your app, you first need to add following files to your project:
If you include
XTrim in project that uses precompiled headers, you must change C/C++ Precompiled Headers settings to Not using precompiled headers for XTrim.cpp.
Next, include the header file XTrim.h in appropriate project files. Now you are ready to start using
XTrim. Please see XTrimTest.cpp for examples.
Version 1.0 - 2003 May 11
This software is released into the public domain. You are free to use it in any way you like. If you modify it or extend it, please to consider posting new code here for everyone to share. This software is provided "as is" with no expressed or implied warranty. I accept no liability for any damage or loss of business that this software may cause.