How to Print a bin array into string.
The string may include printable char, may include hex bytes.
I want to print【“abc” 0x12 0x32 0x55 “eee”】 into string.
If you have the data stored in variables you can using Printf, something like this:
string s1 = "abc", s2 = "eee";
ubyte b1 = 0x12, b2 = 0x32, b3 = 0x55;
Printf( "\"%s\" 0x%02X 0x%02X 0x%02X \"%s\"", s1, b1, b2, b3, s2 );
You can use SPrintf to save this to a string instead of printing. If your data is stored in a different way, can you post the data structures you are using?
Graeme
SweetScape Software