Connecting Tech Pros Worldwide Forums | Help | Site Map

convert UCHAR[] to char[]

Newbie
 
Join Date: Dec 2007
Posts: 14
#1: Aug 5 '08
can any help me to convert UCHR[] to char[] ?

Thanks in advance

Stang02GT's Avatar
Moderator
 
Join Date: Jun 2007
Location: USA
Posts: 1,152
#2: Aug 5 '08

re: convert UCHAR[] to char[]


You are going to need to proived much more detail in order for us to help you.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#3: Aug 5 '08

re: convert UCHAR[] to char[]


Quote:

Originally Posted by sachin30

can any help me to convert UCHR[] to char[] ?

Thanks in advance

if sizeof(UCHR) == sizeof(char) all you have to do is make a char* point to your
UCHR array.

kind regards,

Jos
Newbie
 
Join Date: Dec 2007
Posts: 14
#4: Aug 5 '08

re: convert UCHAR[] to char[]


Quote:

Originally Posted by JosAH

if sizeof(UCHR) == sizeof(char) all you have to do is make a char* point to your
UCHR array.

kind regards,

Jos

thanks Jos

i did it using sprintf();

it's working properly.
Reply