I'm wanting to find out a way to display/convert a whole char array or string into int, such that their hex values are displayed & not characters. I know how to do this, but I'm wanting to find out if there's a way to do it in one pass & not byte by byte
For example, the following does it one at a time, which is fine for small strings, but not for large data blocks.
unsigned char* pbuffer = somedata;
for(int i=0; i< Charsize;i++)
I'm after more something like this:
Where this would convert & store int values in one go into szString or something like along these lines.
unsigned char *pbuffer = "The quick brown fox jumps over the lazy dog";