1 int isLittleEndian(void) 2 { 3 return *(char *)(int []){1} == 1; 4 }
关于Compound Literals,https://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Compound-Literals.html
时间: 2024-11-09 17:19:58
1 int isLittleEndian(void) 2 { 3 return *(char *)(int []){1} == 1; 4 }
关于Compound Literals,https://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Compound-Literals.html