Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Convert Byte array to char array?

Status
Not open for further replies.

gumarein

Programmer
Aug 17, 2003
4
0
0
IN
Hi All,
I am new to c/c++, and I have a Byte array and i wanted to Convert it into char array. Any idea...

-------
gumare
 
Where did this byte array come from - a file?

A char array is a byte array with these conditions
- the bytes are printable, space(0x20) to ~(0x7e) and a few special chars like tab and newline.
- the last byte has the value 0x00, marking the end of the string

--
 
Hi salem,
thanks for the reply.
This Byte array is coming from third party API and i want to convert it into char array(string). This (string) is required because i want to pass this string to a Java Program.

thanks
gumare
 
Hi all,
Got it ...
thank you all

thanks
------
gumare
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top