The Better String Library is superior to the C library char string type, or C++’s std::string. It’s safer with regard to buffer overflows, simpler than C string manipulation, works ok for ‘\0’ terminated strings and generally faster for common string operations.
The library is fully a stand alone C and C++ library, and also portable. It can work with gcc/g++, Microsoft Visual C++, Intel C++, WATCOM C/C++, Turbo C, Borland C++, IBM’s native CC compiler on Windows, Linux and Mac OS X. It is a very high performing library which is very easy to use and is not part of some other collection of data structures.
The library also includes a C++ wrapper that uses overloaded operators, stream I/O and Standard Template Library to make the CBString struct a natural and powerful string abstraction with more functionality and higher performance than std::string.
Download: C/C++ String Library