04-03-2013 02:18 AM
Hi, I am trying to convert 32 bit Integer array to character string. For ex: if array contains {1234, 4567, 8, 9} i need string as {00,00, 34,12, 00, 00, 45, 67, ....}
How to do this one.
Please Help 🙂
Thanks & Regards,
Harish. G.
Solved! Go to Solution.
04-03-2013 02:36 AM - edited 04-03-2013 02:41 AM
Hi Harish,
- Do you need bytes containing your numbers?
- What is the byte order? 1234 should result in 00,00,34,12 and 4567 results in 00,00,45,67???
- What are "characters" by your definition?
Please provide a really good example&explanation of the desired result!
Straight-forward solution by following your descrition word-by-word:
04-03-2013 04:36 AM
Thank u very much:)
It is a ver good solution for me.
But here you are storing 1234 as 00 00 12 34. In this 00, 00, 12, 34 is two bytes. I need 00, 00, 12, 34 as single bytes.
Thank you for showing a very good example.
Thanks & Regards,
Harish. G.
04-03-2013 04:50 AM
04-03-2013 06:12 AM
Hi, my requirement is
I have 32 bit integer array, that contains a[] = {11223344, 55667788};
I need output as follows in 8 bit integer array b[]= {11,22,33,44,55,66,77,88};
Thanks & Regards,
Harish G.
04-03-2013 06:14 AM - edited 04-03-2013 06:17 AM
04-04-2013 01:33 AM
Hi,
Thank you :).
This solution solved my problem.
Thanks and Regards,
Harish. G.