I just want to ask if my method is correct to convert from little endian to big endian, just to make sure if I understand the difference.
I have a number which is st
I think you can use function htonl(). Network byte order is big endian.
htonl()