An emulation of the C++ string class in C