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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -