base 2 or base 16 (hexadecimal, or hex) is given by ... int swap_endian(int x) { char *c; c = (char *)&x;. /* XOR byte pairs 3 times swaps them in place */.
確定! 回上一頁