By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,615 Members | 1,961 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,615 IT Pros & Developers. It's quick & easy.

comparing a "wchar_t" to "char"

P: n/a
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.)

Sep 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.