When I get around to it, I may ......
Will the library be 'automagically' be tracking the number of characters, the number of bytes, or both for the string?
Undoubtedly one should use all of the memory safe and string safe C functions to create a string safe library of manipulation functions.
Would you include new string functions? One that seem to be missing is sub-string replace.
Where a search for string from an arbitrary position looks for a sub-string and if found replaces it with a replacement string of any arbitrary length including length 0 which would remove the sub-string. The return value would be either -1 if sub-string is not found or x where x is character position 1 past the end of a last located sub-string. There could also be a max string input since the replacement could be much larger than the sub-string.
//i = start character, ptr = pointer to string to manipulate, sub-string, replacement string, max size
i = 0;
i = strreplace( i, ptr, "Abc", "ABCD", 50); and
i = wcsreplace(i ptr, L"AbC", L"DEFGH",50);
John Z