comparing a "wchar_t" to "char"

E

ern

So I want to compare the longer wchar_t type to a char type, using
wcsstr and wcsstr.

With a raw string, I can use 'L' like so:

wcsstr((uint16_t *)wchar_String, L"regularCharString")



BUT... say I have:

char * reg = "regularCharString"

How would I call wcsstr using the reg variable? (Tried typecasting,
but that doesn't work.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top