cpptrim

Simple trim function library for C++ strings (removes leading and trailing whitespace from strings). Include the .h or copy the function to your source.

How to install

Copy cpptrim.h to your project folder and add include "cpptrim.h". You can also copy the trim function from cpptrim.h to your own project without including anything.

How to use

Just call trim(yourString); and you are done, the string is treamed. For more information check example.cpp included in the example folder.