i have a byte array that contains hex values. i want to convert 6 bytes of it into decimal values and display the result as a string.
also when do i have to take the endianess into consideration?
i have tried to basically do a direct assignment to unsigned long and i saw that it did convert it correctly but i did not use any endianess. although i still did not convert it into a string.
when do i use endianess ( i am developing on unbuntu but i know i will have to port this to a sun box/hp box maybe). i did read somewhere that as long as the unsigned long size is <= 2 it should work on any box. is this true? if so why?
your help would be greatly appreciated.
also when do i have to take the endianess into consideration?
i have tried to basically do a direct assignment to unsigned long and i saw that it did convert it correctly but i did not use any endianess. although i still did not convert it into a string.
when do i use endianess ( i am developing on unbuntu but i know i will have to port this to a sun box/hp box maybe). i did read somewhere that as long as the unsigned long size is <= 2 it should work on any box. is this true? if so why?
your help would be greatly appreciated.
Comment