Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > comparing a "wchar_t" to "char"

Reply
Thread Tools

comparing a "wchar_t" to "char"

 
 
ern
Guest
Posts: n/a
 
      09-21-2006
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.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
comparing the array in parallel srinukasam VHDL 3 07-30-2005 12:27 PM
comparing the array for generic parameters srinukasam VHDL 3 06-30-2005 07:40 PM
comparing the contents of memory srinukasam VHDL 5 06-23-2005 07:49 PM
[VHDL] Comparing entity and component declarations M.D. van de Burgwal VHDL 3 10-07-2004 08:58 AM
Comparing values in 2 textfiles and returning the missing values Jorgen Gustafsson Perl 4 12-12-2003 09:09 AM



Advertisments