c++ little endian or big endian code example
Example: c++ little endian or big endian
if ( htonl(47) == 47 ) {
// Big endian
} else {
// Little endian.
}
if ( htonl(47) == 47 ) {
// Big endian
} else {
// Little endian.
}