0x12345678
is stored like so: 0x78 | 0x56 | 0x34 | 0x12
. htonl()
, htons()
, ntohl()
and ntohs()
). #include <stdio.h> int main() { union { int i; char c[sizeof(int)]; } u; u.i = 1; if (u.c[0] == 1) { printf("Little endian\n"); } else { printf("Big endian\n"); } }
v$database
to v$transportable_platform
.