Here's the one I use - its home brew - uses some of the "string.h" functions - but I like it. You can use its functions and also directly access the actual sz pointer: MyString->s <--- char *
Example Usage:
JFC_STRING *MyString=new JFC_STRING();
JFC_STRING *MyString2=new JFC_STRING();
MyString->Set("Hi Mom");
MyString2->Set("Dude");
if(!MyString->EqualCS(MyString2->s)){
dbPrint("Equal works! (Because they should NOT equal each other)");
};
MyString->ConCat(" Happy holidays!");
Check it out - is small and to the point
(I have some home brew dynamic double linked lists to - binary sorting and I'm adding Alpha sort this morning)
[edit]added "new JFC_STRING()" to code snippet...forgot that
[/edit]
[edit]Fixed EqualCS and Equal... just added Case Sensitive version this mornign - had a tiny oops - all set now 2007-12-23 9:42am EST
[/edit]