c++ - How can you remove the last character from a wchar_t*? -


How can I remove the last character of wchar_t * and resize accordingly? For example, to "test" and to bring it down in "Tess"

How about Str [wcslen (str) - 1] = '\ 0'

Make sure the string is at least 1 character long ago!


Comments

Popular posts from this blog

excel - Populate list via a bi-Condition -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -