T
T
Ternick2020-09-15 22:03:50
C++ / C#
Ternick, 2020-09-15 22:03:50

How to get the length of a wchar_t array?

I am reading an image into a wchar_t buffer with a given length and then returning a pointer to that array.
After I need to determine the length of such an array, the problem is that wcslen gives out 5 characters, although there are clearly more than five characters)
This is how the file looks like in a hex editor.
image5a1e16d5de0b0dca.png
How to solve such a question?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question